$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 claims to have a robust yet permissive whitelist: 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.
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).
<element> <?php echo $html
?> </element>
. The parent in this example
is element
.ul
don't allow text in them, so
#PCDATA is missing.font
turns into a span
tag with appropriate CSS.lang
and xml:lang
use this hook, to synchronize each other's values. Pre/Post indicates
whether or not the transform is done before/after validation.