$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

Pretty-print an object and see how it turns out.

Modify configuration

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; ?>
% checked="checked" /> Null checked="checked" /> or />
[Reset]

HTMLDefinition

render($config) ?>

CSSDefinition

render($config) ?>