$generator
$generator :
For HTML generation convenience funcs.
prepareGenerator(\HTMLPurifier_Config $config)
Give generator necessary configuration if possible
| \HTMLPurifier_Config | $config |
render(\HTMLPurifier_Config $config) : string
| \HTMLPurifier_Config | $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 |