$generator
$generator :
For HTML generation convenience funcs.
Printer decorator for directives that accept null
__construct(\HTMLPurifier_Printer $obj)
Initialize $generator.
| \HTMLPurifier_Printer | $obj | Printer to decorate |
prepareGenerator(\HTMLPurifier_Config $config)
Give generator necessary configuration if possible
| \HTMLPurifier_Config | $config |
render(string $ns, string $directive, string $value, string $name, \HTMLPurifier_Config|array $config) : string
| string | $ns | |
| string | $directive | |
| string | $value | |
| string | $name | |
| \HTMLPurifier_Config|array | $config |
element(string $tag, string $contents, array $attr = array(), boolean $escape = true) : string
Prints a complete element with content inside
| string | $tag | Tag name |
| string | $contents | Element contents |
| array | $attr | Tag attributes |
| boolean | $escape | whether or not to escape contents |