Class HTMLPurifier
Facade that coordinates HTML Purifier's subsystems in order to purify HTML.
Note:
There are several points in which configuration can be specified for HTML
Purifier. The precedence of these (from lowest to highest) is as follows: -#
Instance: new HTMLPurifier($config) -# Invocation: purify($html, $config) These
configurations are entirely independent of each other and are not
merged (this behavior may change in the future).
Located at x2engine/framework/vendors/htmlpurifier/HTMLPurifier.standalone.php
Located at x2engine/framework/vendors/htmlpurifier/HTMLPurifier.standalone.php
public
|
|
public
|
#
addFilter(
Adds a filter to process the output. First come first serve |
public
string
|
#
purify( string $html,
Filters an HTML snippet/document to be XSS-free and standards-compliant. |
public
string[]
|
#
purifyArray( string[] $array_of_html,
Filters an array of HTML snippets |
public static
|
#
instance(
Singleton for enforcing just one HTML Purifier in your system |
public static
|
#
getInstance(
Singleton for enforcing just one HTML Purifier in your system |
string |
VERSION
|
'4.6.0' |
#
Constant with version of HTML Purifier. |
public
string
|
$version | '4.6.0' |
#
Version of HTML Purifier. |
public
mixed
|
$config |
|
#
Global configuration object. |
protected
mixed
|
$strategy |
|
|
protected
mixed
|
$generator |
|
|
public
mixed
|
$context |
|
#
Resultant context of last run purification. Is an array of contexts if the last called method was purifyArray(). |