Class ilTermsOfServiceDocumentHtmlPurifier.
More...
◆ __construct()
ilTermsOfServiceDocumentHtmlPurifier::__construct |
( |
array |
$allowedTags = null , |
|
|
string |
$cacheDirectory = null |
|
) |
| |
◆ getPurifierConfigInstance()
ilTermsOfServiceDocumentHtmlPurifier::getPurifierConfigInstance |
( |
| ) |
|
|
protected |
Definition at line 52 of file class.ilTermsOfServiceDocumentHtmlPurifier.php.
References $allowedTags, $config, ilHtmlPurifierAbstractLibWrapper\makeElementListTinyMceCompliant(), and ilHtmlPurifierAbstractLibWrapper\removeUnsupportedElements().
54 $config = HTMLPurifier_Config::createDefault();
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->cacheDirectory);
59 $config->set(
'HTML.Doctype',
'XHTML 1.0 Strict');
68 $config->set(
'HTML.ForbiddenAttributes',
'div@style');
70 if ($def =
$config->maybeGetRawHTMLDefinition()) {
71 $def->addAttribute(
'a',
'target',
'Enum#_blank,_self,_target,_top');
makeElementListTinyMceCompliant(array $elements)
removeUnsupportedElements(array $elements)
Removes all unsupported elements.
◆ $allowedTags
array ilTermsOfServiceDocumentHtmlPurifier::$allowedTags |
|
private |
◆ $cacheDirectory
string ilTermsOfServiceDocumentHtmlPurifier::$cacheDirectory |
|
protected |
The documentation for this class was generated from the following file: