38 $config = HTMLPurifier_Config::createDefault();
39 $config->set(
'HTML.DefinitionID',
'ilias termsofservice document');
40 $config->set(
'HTML.DefinitionRev', 1);
41 $config->set(
'HTML.TargetBlank',
true);
42 $config->set(
'Cache.SerializerPath', $this->cacheDirectory);
43 $config->set(
'HTML.Doctype',
'XHTML 1.0 Strict');
52 $config->set(
'HTML.ForbiddenAttributes',
'div@style');
54 if ($def =
$config->maybeGetRawHTMLDefinition()) {
55 $def->addAttribute(
'a',
'target',
'Enum#_blank,_self,_target,_top');
static _getCacheDirectory()
makeElementListTinyMceCompliant(array $elements)
static _getUsedHTMLTags($a_module="")
Returns an array of all allowed HTML tags for text editing.
removeUnsupportedElements(array $elements)
Removes all unsupported elements.
getPurifierConfigInstance()
Abstract class wrapping the HTMLPurifier instance.
__construct(array $allowedTags=null, string $cacheDirectory=null)
ilTermsOfServiceDocumentHtmlPurifier constructor.
__construct(Container $dic, ilPlugin $plugin)