Definition at line 28 of file HTMLPurifier.php.
◆ __construct()
ILIAS\LegalDocuments\HTMLPurifier::__construct |
( |
?array |
$allowed_tags = null , |
|
|
?string |
$cache_directory = null , |
|
|
?Closure |
$create_config = null |
|
) |
| |
◆ getPurifierConfigInstance()
ILIAS\LegalDocuments\HTMLPurifier::getPurifierConfigInstance |
( |
| ) |
|
|
protected |
Definition at line 52 of file HTMLPurifier.php.
References ILIAS\LegalDocuments\HTMLPurifier\$create_config, ilHtmlPurifierAbstractLibWrapper\makeElementListTinyMceCompliant(), null, and ilHtmlPurifierAbstractLibWrapper\removeUnsupportedElements().
55 $config->set(
'HTML.DefinitionID',
'ilias termsofservice document');
56 $config->set(
'HTML.DefinitionRev', 1);
57 $config->set(
'HTML.TargetBlank',
true);
58 $config->set(
'Cache.SerializerPath', $this->cache_directory);
59 $config->set(
'HTML.Doctype',
'XHTML 1.0 Strict');
67 $config->set(
'HTML.ForbiddenAttributes',
'div@style');
69 if (($def = $config->maybeGetRawHTMLDefinition()) !==
null) {
70 $def->addAttribute(
'a',
'target',
'Enum#_blank,_self,_target,_top');
makeElementListTinyMceCompliant(array $elements)
removeUnsupportedElements(array $elements)
Removes all unsupported elements.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
readonly Closure $create_config
◆ $allowed_tags
readonly array ILIAS\LegalDocuments\HTMLPurifier::$allowed_tags |
|
private |
◆ $cache_directory
readonly string ILIAS\LegalDocuments\HTMLPurifier::$cache_directory |
|
private |
◆ $create_config
readonly Closure ILIAS\LegalDocuments\HTMLPurifier::$create_config |
|
private |
The documentation for this class was generated from the following file: