$generator
$generator
For HTML generation convenience funcs.
__construct(string $name, string $doc_url = null, bool $compress = false) : mixed
Initialize $generator.
string | $name | Form element name for directives to be stuffed into |
string | $doc_url | String documentation URL, will have fragment tagged on |
bool | $compress | Integer max length before compressing a directive name, set to false to turn off |
render(\HTMLPurifier_Config|array $config, array|bool $allowed = true, bool $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|bool | $allowed | Optional namespace(s) and directives to restrict form to. |
bool | $render_controls |
element(string $tag, string $contents, array $attr = array(), bool $escape = true) : string
Prints a complete element with content inside
string | $tag | Tag name |
string | $contents | Element contents |
array | $attr | Tag attributes |
bool | $escape | whether or not to escape contents |