$value) { if (!strncmp($key, 'Null_', 5) && !empty($value)) { unset($get[substr($key, 5)]); unset($get[$key]); } } @$config->loadArray($get); $printer_html_definition = new HTMLPurifier_Printer_HTMLDefinition(); $printer_css_definition = new HTMLPurifier_Printer_CSSDefinition(); echo ''; ?> HTML Purifier Printer Smoketest

HTML Purifier Printer Smoketest

This page will allow you to see precisely what HTML Purifier's internal whitelist is. You can also twiddle with the configuration settings to see how a directive influences the internal workings of the definition objects.

Modify configuration

You can specify an array by typing in a comma-separated list of items, HTML Purifier will take care of the rest (including transformation into a real array list or a lookup table). If a directive can be set to null, that usually means that the feature is disabled when it is null (not that, say, no tags are allowed).

getBatch('HTML'); // can't handle hashes foreach ($directives as $key => $value) { $directive = "HTML.$key"; if (is_array($value)) { $keys = array_keys($value); if ($keys === array_keys($keys)) { $value = implode(',', $keys); } else { $new_value = ''; foreach ($value as $name => $bool) { if ($bool !== true) continue; $new_value .= "$name,"; } $value = rtrim($new_value, ','); } } $allow_null = $config->def->info['HTML'][$key]->allow_null; ?>
% Yes checked="checked" />   No checked="checked" /> Null/Disabled checked="checked" /> or
/>
[Reset]

HTMLDefinition

render($config) ?>

CSSDefinition

render($config) ?>