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');
__construct(array $allowedTags=null, string $cacheDirectory=null)
ilTermsOfServiceDocumentHtmlPurifier constructor.
static _getCacheDirectory()
Get the directory for HTMLPurifier cache files.
removeUnsupportedElements($a_array)
Removes all unsupported elements.
static _getUsedHTMLTags($a_module="")
Returns an array of all allowed HTML tags for text editing.
getPurifierConfigInstance()
Class ilTermsOfServiceDocumentHtmlPurifier.
Abstract class wrapping the HTMLPurifier instance.
static createDefault()
Convenience constructor that creates a default configuration object.
makeElementListTinyMceCompliant($elements)