HTMLPurifier_Generator
__construct
($config $config, $context $context)
-
$config
$config: Instance of HTMLPurifier_Config
-
$context
$context: Instance of HTMLPurifier_Context
Escapes raw text data.
String
escape
($string $string, [$quote $quote = null])
-
$string
$string: String data to escape for HTML.
-
$quote
$quote: Quoting style, like htmlspecialchars. ENT_NOQUOTES is permissible for non-attribute output.
Generates attribute declarations from attribute array.
Generate
generateAttributes
($assoc_array_of_attributes $assoc_array_of_attributes, [$element $element = false])
-
$assoc_array_of_attributes
$assoc_array_of_attributes: Attribute array
-
$element
$element: Name of element attributes are for, used to check attribute minimization.
Generates HTML from a single token.
Generated
generateFromToken
($token $token)
-
$token
$token: HTMLPurifier_Token object.
Generates HTML from an array of tokens.
Generated
generateFromTokens
($tokens $tokens, $config 1)
-
$config
1: HTMLPurifier_Config object
-
$tokens
$tokens: Array of HTMLPurifier_Token
Special case processor for the contents of script tags
void
generateScriptFromToken
( $token)