Error: CSSTidy library not
found, please install and configure test-settings.php
accordingly.
addFilter(new HTMLPurifier_Filter_ExtractStyleBlocks());
$html = isset($_POST['html']) ? $_POST['html'] : '';
$purified_html = $purifier->purify($html);
?>
This smoketest allows users to specify global style sheets for the document, allowing for interesting techniques and compact markup that wouldn't normally be possible, using the ExtractStyleBlocks filter.
User submitted content: