19 declare(strict_types=1);
    26     public function __construct(array $allowedTags = null, 
string $cacheDirectory = null)
    36         $config = HTMLPurifier_Config::createDefault();
    37         $config->set(
'HTML.DefinitionID', 
'ilias termsofservice document');
    38         $config->set(
'HTML.DefinitionRev', 1);
    39         $config->set(
'HTML.TargetBlank', 
true);
    40         $config->set(
'Cache.SerializerPath', $this->cacheDirectory);
    41         $config->set(
'HTML.Doctype', 
'XHTML 1.0 Strict');
    50         $config->set(
'HTML.ForbiddenAttributes', 
'div@style');
    52         if ($def = $config->maybeGetRawHTMLDefinition()) {
    53             $def->addAttribute(
'a', 
'target', 
'Enum#_blank,_self,_target,_top');
 static _getCacheDirectory()
 
makeElementListTinyMceCompliant(array $elements)
 
removeUnsupportedElements(array $elements)
Removes all unsupported elements. 
 
getPurifierConfigInstance()
 
__construct(array $allowedTags=null, string $cacheDirectory=null)
 
__construct(Container $dic, ilPlugin $plugin)
 
static _getUsedHTMLTags(string $a_module="")
Returns an array of all allowed HTML tags for text editing.