true,
'legacy' => true
);
$page = isset ( $_GET ['p'] ) ? $_GET ['p'] : false;
if (! isset ( $allowed [$page] ))
$page = false;
$strict = isset ( $_GET ['d'] ) ? ( bool ) $_GET ['d'] : false;
echo '';
?>
HTML Purifier Basic Smoketest
set ( 'Attr.EnableID', true );
$config->set ( 'HTML.Strict', $strict );
$purifier = new HTMLPurifier ( $config );
echo $purifier->purify ( file_get_contents ( "basic/$page.html" ) );
} else {
?>
HTML Purifier Basic Smoketest Index