Class ilTermsOfServiceDocumentHtmlPurifier.
More...
◆ __construct()
ilTermsOfServiceDocumentHtmlPurifier::__construct |
( |
array |
$allowedTags = null , |
|
|
string |
$cacheDirectory = null |
|
) |
| |
◆ getPurifierConfigInstance()
ilTermsOfServiceDocumentHtmlPurifier::getPurifierConfigInstance |
( |
| ) |
|
|
protected |
Definition at line 40 of file class.ilTermsOfServiceDocumentHtmlPurifier.php.
References $allowedTags, $config, $def, $tags, HTMLPurifier_Config\createDefault(), ilHtmlPurifierAbstractLibWrapper\makeElementListTinyMceCompliant(), and ilHtmlPurifierAbstractLibWrapper\removeUnsupportedElements().
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');
59 $def->addAttribute(
'a',
'target',
'Enum#_blank,_self,_target,_top');
removeUnsupportedElements($a_array)
Removes all unsupported elements.
static createDefault()
Convenience constructor that creates a default configuration object.
makeElementListTinyMceCompliant($elements)
◆ $allowedTags
ilTermsOfServiceDocumentHtmlPurifier::$allowedTags = [] |
|
private |
◆ $cacheDirectory
ilTermsOfServiceDocumentHtmlPurifier::$cacheDirectory = '' |
|
protected |
The documentation for this class was generated from the following file: