◆ __construct()
HTMLPurifier_Generator::__construct |
( |
| $config, |
|
|
| $context ) |
◆ escape()
HTMLPurifier_Generator::escape |
( |
| $string, |
|
|
| $quote = null ) |
Escapes raw text data.
- Todo
- This really ought to be protected, but until we have a facility for properly generating HTML here w/o using tokens, it stays public.
- Parameters
-
string | $string | String data to escape for HTML. |
int | $quote | Quoting style, like htmlspecialchars. ENT_NOQUOTES is permissible for non-attribute output. |
- Return values
-
◆ 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. |
- Return values
-
string | Generated HTML fragment for insertion. |
◆ generateFromToken()
HTMLPurifier_Generator::generateFromToken |
( |
| $token | ) |
|
Generates HTML from a single token.
- Parameters
-
- Return values
-
◆ generateFromTokens()
HTMLPurifier_Generator::generateFromTokens |
( |
| $tokens | ) |
|
Generates HTML from an array of tokens.
- Parameters
-
- Return values
-
◆ generateScriptFromToken()
HTMLPurifier_Generator::generateScriptFromToken |
( |
| $token | ) |
|
Special case processor for the contents of script tags.
- Parameters
-
- Return values
-
- Warning
- This runs into problems if there's already a literal --> somewhere inside the script contents.
The documentation for this class was generated from the following file:
- lib/htmlpurifier/HTMLPurifier/Generator.php