ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilTermsOfServiceDocumentHtmlPurifier. More...
Public Member Functions | |
__construct (array $allowedTags=null, string $cacheDirectory=null) | |
ilTermsOfServiceDocumentHtmlPurifier constructor. More... | |
![]() | |
__construct () | |
Constructor. More... | |
purify ($a_html, $a_config=null) | |
Filters an HTML snippet/document to be XSS-free and standards-compliant. More... | |
purifyArray (array $a_array_of_html, $a_config=null) | |
Filters an array of HTML snippets/documents to be XSS-free and standards-compliant. More... | |
![]() | |
purify ($a_html) | |
Filters an HTML snippet/document to be XSS-free and standards-compliant. More... | |
purifyArray (array $a_array_of_html) | |
Filters an array of HTML snippets/documents to be XSS-free and standards-compliant. More... | |
Protected Member Functions | |
getPurifierConfigInstance () | |
Has to be implemented by subclasses to build the HTMLPurifier_Config instance with object specific configurations.@abstract @access protected More... | |
![]() | |
getPurifierConfigInstance () | |
Has to be implemented by subclasses to build the HTMLPurifier_Config instance with object specific configurations. More... | |
setPurifier (HTMLPurifier $oPurifier) | |
Set the purifier by subclass. More... | |
getPurifier () | |
Get the purifier. More... | |
removeUnsupportedElements ($a_array) | |
Removes all unsupported elements. More... | |
makeElementListTinyMceCompliant ($elements) | |
Protected Attributes | |
$cacheDirectory = '' | |
![]() | |
$oPurifier = null | |
Private Attributes | |
$allowedTags = [] | |
Additional Inherited Members | |
![]() | |
static | _getCacheDirectory () |
Get the directory for HTMLPurifier cache files. More... | |
Class ilTermsOfServiceDocumentHtmlPurifier.
Definition at line 8 of file class.ilTermsOfServiceDocumentHtmlPurifier.php.
ilTermsOfServiceDocumentHtmlPurifier::__construct | ( | array | $allowedTags = null , |
string | $cacheDirectory = null |
||
) |
ilTermsOfServiceDocumentHtmlPurifier constructor.
array | null | $allowedTags | |
string | $cacheDirectory |
Definition at line 21 of file class.ilTermsOfServiceDocumentHtmlPurifier.php.
References $allowedTags, $cacheDirectory, ilHtmlPurifierAbstractLibWrapper\_getCacheDirectory(), and ilObjAdvancedEditing\_getUsedHTMLTags().
|
protected |
Has to be implemented by subclasses to build the HTMLPurifier_Config instance with object specific configurations.@abstract @access protected
Reimplemented from ilHtmlPurifierAbstractLibWrapper.
Definition at line 40 of file class.ilTermsOfServiceDocumentHtmlPurifier.php.
References $allowedTags, $config, $def, $tags, HTMLPurifier_Config\createDefault(), ilHtmlPurifierAbstractLibWrapper\makeElementListTinyMceCompliant(), and ilHtmlPurifierAbstractLibWrapper\removeUnsupportedElements().
|
private |
Definition at line 11 of file class.ilTermsOfServiceDocumentHtmlPurifier.php.
Referenced by __construct(), and getPurifierConfigInstance().
|
protected |
Definition at line 14 of file class.ilTermsOfServiceDocumentHtmlPurifier.php.
Referenced by __construct().