$generator
$generator :
For HTML generation convenience funcs.
__construct(string $name, string $doc_url = null, boolean $compress = false)
Initialize $generator.
| string | $name | Form element name for directives to be stuffed into |
| string | $doc_url | String documentation URL, will have fragment tagged on |
| boolean | $compress | Integer max length before compressing a directive name, set to false to turn off |
prepareGenerator(\HTMLPurifier_Config $config)
Give generator necessary configuration if possible
| \HTMLPurifier_Config | $config |
render(\HTMLPurifier_Config|array $config, array|boolean $allowed = true, boolean $render_controls = true) : string
Returns HTML output for a configuration form
| \HTMLPurifier_Config|array | $config | Configuration object of current form state, or an array where [0] has an HTML namespace and [1] is being rendered. |
| array|boolean | $allowed | Optional namespace(s) and directives to restrict form to. |
| boolean | $render_controls |
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 |