◆ __construct()
ilWebDAVMountInstructionsDocumentPurifier::__construct |
( |
array |
$allowedTags = null , |
|
|
string |
$cacheDirectory = null |
|
) |
| |
◆ getPurifierConfigInstance()
ilWebDAVMountInstructionsDocumentPurifier::getPurifierConfigInstance |
( |
| ) |
|
|
protected |
Definition at line 34 of file class.ilWebDAVMountInstructionsDocumentPurifier.php.
References $allowedTags, ilHtmlPurifierAbstractLibWrapper\makeElementListTinyMceCompliant(), and ilHtmlPurifierAbstractLibWrapper\removeUnsupportedElements().
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');
makeElementListTinyMceCompliant(array $elements)
removeUnsupportedElements(array $elements)
Removes all unsupported elements.
◆ $allowedTags
array ilWebDAVMountInstructionsDocumentPurifier::$allowedTags |
|
private |
◆ $cacheDirectory
string ilWebDAVMountInstructionsDocumentPurifier::$cacheDirectory |
|
protected |
The documentation for this class was generated from the following file: