XOOPS API 2.5.11 Beta1
UI v0.5
Réalisé par monxoops.fr
|
Fonctions membres publiques | |
__construct ($config=null) | |
addFilter ($filter) | |
purify ($html, $config=null) | |
purifyArray ($array_of_html, $config=null) | |
Fonctions membres publiques statiques | |
static | instance ($prototype=null) |
static | getInstance ($prototype=null) |
Champs de données | |
$version = '4.12.0' | |
const | VERSION = '4.12.0' |
$config | |
$context | |
Attributs protégés | |
$strategy | |
$generator | |
Attributs privés | |
$filters = array() | |
Attributs privés statiques | |
static | $instance |
Facade that coordinates HTML Purifier's subsystems in order to purify HTML.
__construct | ( | $config = null | ) |
Initializes the purifier.
HTMLPurifier_Config | mixed | $config | Optional HTMLPurifier_Config object for all instances of the purifier, if omitted, a default configuration is supplied (which can be overridden on a per-use basis). The parameter can also be any type that HTMLPurifier_Config::create() supports. |
addFilter | ( | $filter | ) |
Adds a filter to process the output. First come first serve
HTMLPurifier_Filter | $filter | HTMLPurifier_Filter object |
|
static |
Singleton for enforcing just one HTML Purifier in your system
HTMLPurifier | HTMLPurifier_Config | $prototype | Optional prototype HTMLPurifier instance to overload singleton with, or HTMLPurifier_Config instance to configure the generated version with. |
|
static |
Singleton for enforcing just one HTML Purifier in your system
HTMLPurifier | HTMLPurifier_Config | $prototype | Optional prototype HTMLPurifier instance to overload singleton with, or HTMLPurifier_Config instance to configure the generated version with. |
purify | ( | $html, | |
$config = null |
|||
) |
Filters an HTML snippet/document to be XSS-free and standards-compliant.
string | $html | String of HTML to purify |
HTMLPurifier_Config | $config | Config object for this operation, if omitted, defaults to the config object specified during this object's construction. The parameter can also be any type that HTMLPurifier_Config::create() supports. |
purifyArray | ( | $array_of_html, | |
$config = null |
|||
) |
Filters an array of HTML snippets
string[] | $array_of_html | Array of html snippets |
HTMLPurifier_Config | $config | Optional config object for this operation. See HTMLPurifier::purify() for more details. |
Global configuration object. @type HTMLPurifier_Config
Resultant context of last run purification. Is an array of contexts if the last called method was purifyArray(). @type HTMLPurifier_Context
|
private |
Array of extra filter objects to run on HTML, for backwards compatibility. @type HTMLPurifier_Filter[]
|
protected |
@type HTMLPurifier_Generator
|
staticprivate |
Single instance of HTML Purifier. @type HTMLPurifier
|
protected |
$version = '4.12.0' |
Version of HTML Purifier. @type string
const VERSION = '4.12.0' |
Constant with version of HTML Purifier.