Class HTMLPurifier_Generator
Generates HTML from tokens.
Methods summary
public
|
|
public
string
|
|
public
string
|
|
public
string
|
#
generateScriptFromToken( HTMLPurifier_Token $token )
Special case processor for the contents of script tags
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.
|
public
string
|
#
generateAttributes( array $assoc_array_of_attributes, string $element = '' )
Generates attribute declarations from attribute array.
Generates attribute declarations from attribute array.
Parameters
- $assoc_array_of_attributes
array $assoc_array_of_attributes Attribute array
- $element
string $element Name of element attributes are for, used to check attribute
minimization.
Returns
string Generated HTML fragment for insertion.
Note
This does not include the leading or trailing space.
|
public
string
|
#
escape( string $string, integer $quote = null )
Escapes raw text data.
Parameters
- $string
string $string String data to escape for HTML.
- $quote
integer $quote Quoting style, like htmlspecialchars. ENT_NOQUOTES is permissible for
non-attribute output.
Returns
string escaped data.
|
Properties summary
protected
mixed
|
$config
|
|
#
Configuration for the generator
Configuration for the generator
Type
HTMLPurifier_Config
|