Generates HTML from tokens.
Definition at line 5178 of file HTMLPurifier.standalone.php.
◆ __construct()
HTMLPurifier_Generator::__construct |
( |
|
$config, |
|
|
|
$context |
|
) |
| |
◆ escape()
HTMLPurifier_Generator::escape |
( |
|
$string, |
|
|
|
$quote = null |
|
) |
| |
Escapes raw text data.
- Parameters
-
string | $string | String data to escape for HTML. |
int | $quote | Quoting style, like htmlspecialchars. ENT_NOQUOTES is permissible for non-attribute output. |
- Returns
- string escaped data.
Definition at line 5443 of file HTMLPurifier.standalone.php.
◆ generateAttributes()
HTMLPurifier_Generator::generateAttributes |
( |
|
$assoc_array_of_attributes, |
|
|
|
$element = '' |
|
) |
| |
Generates attribute declarations from attribute array.
- Note
- This does not include the leading or trailing space.
- Parameters
-
array | $assoc_array_of_attributes | Attribute array |
string | $element | Name of element attributes are for, used to check attribute minimization. |
- Returns
- string Generated HTML fragment for insertion.
Definition at line 5379 of file HTMLPurifier.standalone.php.
◆ generateFromToken()
HTMLPurifier_Generator::generateFromToken |
( |
|
$token | ) |
|
◆ generateFromTokens()
HTMLPurifier_Generator::generateFromTokens |
( |
|
$tokens | ) |
|
◆ generateScriptFromToken()
HTMLPurifier_Generator::generateScriptFromToken |
( |
|
$token | ) |
|
Special case processor for the contents of script tags
- Parameters
-
- Returns
- string
- Warning
- This runs into problems if there's already a literal --> somewhere inside the script contents.
Definition at line 5361 of file HTMLPurifier.standalone.php.
◆ $config
HTMLPurifier_Generator::$config |
|
protected |
The documentation for this class was generated from the following file: