HTML Purifier Attribute Transformation Smoketest

HTML
CSS
Requires PHP 5.

' ); $xml = simplexml_load_file ( 'attrTransform.xml' ); // attr transform enabled HTML Purifier $config = HTMLPurifier_Config::createDefault (); $config->set ( 'HTML.Doctype', 'XHTML 1.0 Strict' ); $purifier = new HTMLPurifier ( $config ); $title = isset ( $_GET ['title'] ) ? $_GET ['title'] : true; foreach ( $xml->group as $group ) { echo '

' . $group ['title'] . '

'; foreach ( $group->sample as $sample ) { $sample = ( string ) $sample; ?>
purify($sample); ?>