33        parent::__construct();
 
   43        $config->set(
'HTML.DefinitionID', 
'ilias termsofservice document');
 
   44        $config->set(
'HTML.DefinitionRev', 1);
 
   45        $config->set(
'HTML.TargetBlank', 
true);
 
   46        $config->set(
'Cache.SerializerPath', $this->cacheDirectory);
 
   47        $config->set(
'HTML.Doctype', 
'XHTML 1.0 Strict');
 
   56        $config->set(
'HTML.ForbiddenAttributes', 
'div@style');
 
   59            $def->addAttribute(
'a', 
'target', 
'Enum#_blank,_self,_target,_top');
 
An exception for terminatinating execution or to throw for unit testing.
static createDefault()
Convenience constructor that creates a default configuration object.
Abstract class wrapping the HTMLPurifier instance.
makeElementListTinyMceCompliant($elements)
removeUnsupportedElements($a_array)
Removes all unsupported elements.
static _getCacheDirectory()
Get the directory for HTMLPurifier cache files.
static _getUsedHTMLTags($a_module="")
Returns an array of all allowed HTML tags for text editing.
Class ilTermsOfServiceDocumentHtmlPurifier.
__construct(array $allowedTags=null, string $cacheDirectory=null)
ilTermsOfServiceDocumentHtmlPurifier constructor.
getPurifierConfigInstance()
Has to be implemented by subclasses to build the HTMLPurifier_Config instance with object specific co...