1 <?php declare(strict_types=1);
42 $config = HTMLPurifier_Config::createDefault();
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');
58 if ($def =
$config->maybeGetRawHTMLDefinition()) {
59 $def->addAttribute(
'a',
'target',
'Enum#_blank,_self,_target,_top');
__construct(array $allowedTags=null, string $cacheDirectory=null)
ilTermsOfServiceDocumentHtmlPurifier constructor.
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()
Class ilTermsOfServiceDocumentHtmlPurifier.
Abstract class wrapping the HTMLPurifier instance.
__construct(Container $dic, ilPlugin $plugin)