Generates HTML from tokens.
Methods | ||||||
---|---|---|---|---|---|---|
public
|
__construct(HTMLPurifier_Config $config, HTMLPurifier_Context $context)
|
# | ||||
public
|
generateFromTokens(HTMLPurifier_Token[] $tokens): string
Generates HTML from an array of tokens.
Generates HTML from an array of tokens. Parameters
ReturnsGenerated HTML |
# | ||||
public
|
generateFromToken(HTMLPurifier_Token $token): string
Generates HTML from a single token.
Generates HTML from a single token. Parameters
ReturnsGenerated HTML |
# | ||||
public
|
generateScriptFromToken(HTMLPurifier_Token $token): string
Special case processor for the contents of script tags
Special case processor for the contents of script tags Parameters
|
# | ||||
public
|
generateAttributes(array $assoc_array_of_attributes, string $element = ''): string
Generates attribute declarations from attribute array.
Generates attribute declarations from attribute array. Parameters
ReturnsGenerated HTML fragment for insertion. |
# | ||||
public
|
escape(string $string, int $quote = null): string
Escapes raw text data.
Escapes raw text data. Parameters
Returnsescaped data. |
# |
Properties | |||
---|---|---|---|
protected
|
|
$config
Configuration for the generator
Configuration for the generator |
# |