ILIAS
Release_4_0_x_branch Revision 61816
|
Abstract class wrapping the HTMLPurifier instance. More...
Public Member Functions | |
__construct () | |
Constructor. | |
purify ($a_html, $a_config=null) | |
Filters an HTML snippet/document to be XSS-free and standards-compliant. | |
purifyArray (Array $a_array_of_html, $a_config=null) | |
Filters an array of HTML snippets/documents to be XSS-free and standards-compliant. | |
Public Member Functions inherited from ilHtmlPurifierInterface | |
purify ($a_html) | |
Filters an HTML snippet/document to be XSS-free and standards-compliant. | |
purifyArray (Array $a_array_of_html) | |
Filters an array of HTML snippets/documents to be XSS-free and standards-compliant. |
Static Public Member Functions | |
static | _getCacheDirectory () |
Get the directory for HTMLPurifier cache files. |
Protected Member Functions | |
getPurifierConfigInstance () | |
Has to be implemented by subclasses to build the HTMLPurifier_Config instance with object specific configurations. | |
setPurifier (HTMLPurifier $oPurifier) | |
Set the purifier by subclass. | |
getPurifier () | |
Get the purifier. | |
removeUnsupportedElements ($a_array) | |
Removes all unsupported elements. |
Protected Attributes | |
$oPurifier = null |
Abstract class wrapping the HTMLPurifier instance.
Definition at line 15 of file class.ilHtmlPurifierAbstractLibWrapper.php.
ilHtmlPurifierAbstractLibWrapper::__construct | ( | ) |
Constructor.
public
Reimplemented in ilHtmlForumPostPurifier.
Definition at line 34 of file class.ilHtmlPurifierAbstractLibWrapper.php.
References getPurifierConfigInstance(), HTMLPurifier(), and setPurifier().
|
staticfinal |
Get the directory for HTMLPurifier cache files.
Definition at line 117 of file class.ilHtmlPurifierAbstractLibWrapper.php.
References ilUtil\getDataDir(), and ilUtil\makeDirParents().
Referenced by ilHtmlForumPostPurifier\getPurifierConfigInstance().
|
protected |
Get the purifier.
Definition at line 102 of file class.ilHtmlPurifierAbstractLibWrapper.php.
References $oPurifier.
|
abstractprotected |
Has to be implemented by subclasses to build the HTMLPurifier_Config instance with object specific configurations.
protected
Reimplemented in ilHtmlForumPostPurifier.
Referenced by __construct().
|
final |
Filters an HTML snippet/document to be XSS-free and standards-compliant.
public
string | $a_html | HTML snippet/document |
Definition at line 50 of file class.ilHtmlPurifierAbstractLibWrapper.php.
|
final |
Filters an array of HTML snippets/documents to be XSS-free and standards-compliant.
public
array | $a_array_of_html | HTML snippet/document |
Definition at line 64 of file class.ilHtmlPurifierAbstractLibWrapper.php.
|
finalprotected |
Removes all unsupported elements.
Array | $a_array | array of all elements |
Definition at line 137 of file class.ilHtmlPurifierAbstractLibWrapper.php.
Referenced by ilHtmlForumPostPurifier\getPurifierConfigInstance().
|
protected |
Set the purifier by subclass.
HTMLPurifier | $oPurifier | Instance of HTMLPurifier |
Definition at line 88 of file class.ilHtmlPurifierAbstractLibWrapper.php.
References $oPurifier.
Referenced by __construct().
|
protected |
Definition at line 26 of file class.ilHtmlPurifierAbstractLibWrapper.php.
Referenced by getPurifier(), and setPurifier().