Facade that coordinates HTML Purifier's subsystems in order to purify HTML.
| Methods | ||||||
|---|---|---|---|---|---|---|
| 
					
	public
					
					
				 | __construct(HTMLPurifier_Config|mixed $config = null)
		Initializes the purifier.
	 Initializes the purifier. Parameters
 | # | ||||
| 
					
	public
					
					
				 | addFilter(HTMLPurifier_Filter $filter)
		Adds a filter to process the output. First come first serve
	 Adds a filter to process the output. First come first serve Parameters
 | # | ||||
| 
					
	public
					
					
				 | purify(string $html, HTMLPurifier_Config $config = null): string
		Filters an HTML snippet/document to be XSS-free and standards-compliant.
	 Filters an HTML snippet/document to be XSS-free and standards-compliant. Parameters
 ReturnsPurified HTML | # | ||||
| 
					
	public
					
					
				 | purifyArray(string[] $array_of_html, HTMLPurifier_Config $config = null): string[]
		Filters an array of HTML snippets
	 Filters an array of HTML snippets Parameters
 ReturnsArray of purified HTML | # | ||||
| 
					
	public
					static
					
				 | instance(HTMLPurifier|HTMLPurifier_Config $prototype = null): HTMLPurifier
		Singleton for enforcing just one HTML Purifier in your system
	 Singleton for enforcing just one HTML Purifier in your system Parameters
 | # | ||||
| 
					
	public
					static
					
				 | getInstance(HTMLPurifier|HTMLPurifier_Config $prototype = null): HTMLPurifier
		Singleton for enforcing just one HTML Purifier in your system
	 Singleton for enforcing just one HTML Purifier in your system Parameters
 | # | ||||
| Constants | ||
|---|---|---|
| 
					
	public
				 | VERSION = '4.15.0'
		Constant with version of HTML Purifier.
	 Constant with version of HTML Purifier. | # | 
| Properties | |||
|---|---|---|---|
| 
	public
					
					
				 |  | $version = '4.15.0'
		Version of HTML Purifier.
	 Version of HTML Purifier. | # | 
| 
	public
					
					
				 |  | $config
		Global configuration object.
	 Global configuration object. | # | 
| 
	protected
					
					
				 |  | $strategy | # | 
| 
	protected
					
					
				 |  | $generator | # | 
| 
	public
					
					
				 |  | $context
		Resultant context of last run purification.
Is an array of contexts if the last called method was purifyArray().
	 Resultant context of last run purification. Is an array of contexts if the last called method was purifyArray(). | # |