|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| __construct ($config=null) | |
| addFilter ($filter) | |
| purify ($html, $config=null) | |
| purifyArray ($array_of_html, $config=null) | |
Static Public Member Functions | |
| static | instance ($prototype=null) |
| static | getInstance ($prototype=null) |
Data Fields | |
| $version = '4.3.0' | |
| const | VERSION = '4.3.0' |
| $config | |
| $generator | |
| $context | |
Protected Attributes | |
| $strategy | |
Facade that coordinates HTML Purifier's subsystems in order to purify HTML.
Definition at line 54 of file HTMLPurifier.php.
| __construct | ( | $ | config = null | ) |
Initializes the purifier.
| $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. |
Definition at line 88 of file HTMLPurifier.php.

| addFilter | ( | $ | filter | ) |
Adds a filter to process the output. First come first serve
| $filter | HTMLPurifier_Filter object |
Definition at line 100 of file HTMLPurifier.php.
| static getInstance | ( | $ | prototype = null | ) | [static] |
Definition at line 231 of file HTMLPurifier.php.


| static instance | ( | $ | prototype = null | ) | [static] |
Singleton for enforcing just one HTML Purifier in your system
| $prototype | Optional prototype HTMLPurifier instance to overload singleton with, or HTMLPurifier_Config instance to configure the generated version with. |
Definition at line 215 of file HTMLPurifier.php.

| purify | ( | $ | html, |
| $ | config = null |
||
| ) |
Filters an HTML snippet/document to be XSS-free and standards-compliant.
| $html | String of HTML to purify |
| $config | HTMLPurifier_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. |
Definition at line 115 of file HTMLPurifier.php.


| purifyArray | ( | $ | array_of_html, |
| $ | config = null |
||
| ) |
Filters an array of HTML snippets
| $config | Optional HTMLPurifier_Config object for this operation. See HTMLPurifier::purify() for more details. |
Definition at line 199 of file HTMLPurifier.php.

| $config |
Global configuration object
Definition at line 64 of file HTMLPurifier.php.
Resultant HTMLPurifier_Context of last run purification. Is an array of contexts if the last called method was purifyArray().
Definition at line 78 of file HTMLPurifier.php.
Definition at line 72 of file HTMLPurifier.php.
$strategy [protected] |
Definition at line 72 of file HTMLPurifier.php.
| $version = '4.3.0' |
Version of HTML Purifier
Definition at line 58 of file HTMLPurifier.php.
| const VERSION = '4.3.0' |
Constant with version of HTML Purifier
Definition at line 61 of file HTMLPurifier.php.