'htmlpurifier'.DS.'library'.DS.'HTMLPurifier.auto.php')); //use this with the 1.2 core class BritaComponent extends Object { var $controller; function startup( &$controller ) { //the next few lines allow the config settings to be cached $config = HTMLPurifier_Config::createDefault(); $config->set('HTML', 'DefinitionID', 'made by debugged interactive designs'); $config->set('HTML', 'DefinitionRev', 1); //levels describe how aggressive the Tidy module should be when cleaning up html //four levels: none, light, medium, heavy $config->set('HTML', 'TidyLevel', 'heavy'); //check the top of your html file for the next two $config->set('HTML', 'Doctype', 'XHTML 1.0 Transitional'); $config->set('Core', 'Encoding', 'ISO-8859-1'); //BritaComponent instance of controller is replaced by a htmlpurifier instance $controller->brita =& new HTMLPurifier($config); $controller->set('brita',$controller->brita); } } ?>