|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Abstract class wrapping the HTMLPurifier instance. More...
Inheritance diagram for ilHtmlPurifierAbstractLibWrapper:
Collaboration diagram for ilHtmlPurifierAbstractLibWrapper:Public Member Functions | |
| __construct () | |
| ilHtmlPurifierAbstractLibWrapper constructor. More... | |
| purify (string $html) | |
| Filters an HTML snippet/document to be XSS-free and standards-compliant. More... | |
| purifyArray (array $htmlCollection) | |
| Filters an array of HTML snippets/documents to be XSS-free and standards-compliant. More... | |
Static Public Member Functions | |
| static | _getCacheDirectory () |
Protected Member Functions | |
| getPurifierConfigInstance () | |
| setPurifier (HTMLPurifier $purifier) | |
| getPurifier () | |
| removeUnsupportedElements (array $elements) | |
| Removes all unsupported elements. More... | |
| makeElementListTinyMceCompliant (array $elements) | |
Protected Attributes | |
| HTMLPurifier | $purifier |
Private Attributes | |
| const | HTML_PURIFIER_DIRECTORY = '/HTMLPurifier' |
| const | NOT_SUPPORTED_TAGS |
Abstract class wrapping the HTMLPurifier instance.
Definition at line 25 of file class.ilHtmlPurifierAbstractLibWrapper.php.
| ilHtmlPurifierAbstractLibWrapper::__construct | ( | ) |
ilHtmlPurifierAbstractLibWrapper constructor.
Definition at line 46 of file class.ilHtmlPurifierAbstractLibWrapper.php.
References getPurifierConfigInstance(), and setPurifier().
Here is the call graph for this function:
|
staticfinal |
Definition at line 86 of file class.ilHtmlPurifierAbstractLibWrapper.php.
References ilFileUtils\getDataDir(), and ilFileUtils\makeDirParents().
Referenced by ilWebDAVMountInstructionsDocumentPurifier\__construct(), ilAccessibilityDocumentHtmlPurifier\__construct(), ILIAS\LegalDocuments\HTMLPurifier\__construct(), ilHtmlForumPostPurifier\getPurifierConfigInstance(), ilExcInstructionPurifier\getPurifierConfigInstance(), ilSvyStandardPurifier\getPurifierConfigInstance(), and ilAssHtmlPurifier\getPurifierConfigInstance().
Here is the call graph for this function:
Here is the caller graph for this function:
|
finalprotected |
Definition at line 81 of file class.ilHtmlPurifierAbstractLibWrapper.php.
References $purifier.
|
abstractprotected |
|
finalprotected |
| string[] | $elements |
Definition at line 117 of file class.ilHtmlPurifierAbstractLibWrapper.php.
Referenced by ilAssHtmlPurifier\getAllowedElements(), ilHtmlForumPostPurifier\getPurifierConfigInstance(), ilExcInstructionPurifier\getPurifierConfigInstance(), ilSvyStandardPurifier\getPurifierConfigInstance(), ilWebDAVMountInstructionsDocumentPurifier\getPurifierConfigInstance(), ilAccessibilityDocumentHtmlPurifier\getPurifierConfigInstance(), and ILIAS\LegalDocuments\HTMLPurifier\getPurifierConfigInstance().
Here is the caller graph for this function:
|
final |
Filters an HTML snippet/document to be XSS-free and standards-compliant.
Implements ilHtmlPurifierInterface.
Definition at line 53 of file class.ilHtmlPurifierAbstractLibWrapper.php.
|
final |
Filters an array of HTML snippets/documents to be XSS-free and standards-compliant.
| string[] | $htmlCollection |
| InvalidArgumentException | If one of the arrays element is not of tpye string |
Implements ilHtmlPurifierInterface.
Definition at line 58 of file class.ilHtmlPurifierAbstractLibWrapper.php.
References ILIAS\LTI\ToolProvider\$key, and getPurifierConfigInstance().
Here is the call graph for this function:
|
finalprotected |
Removes all unsupported elements.
| string[] | $elements |
Definition at line 100 of file class.ilHtmlPurifierAbstractLibWrapper.php.
Referenced by ilAssHtmlPurifier\getAllowedElements(), ilHtmlForumPostPurifier\getPurifierConfigInstance(), ilExcInstructionPurifier\getPurifierConfigInstance(), ilSvyStandardPurifier\getPurifierConfigInstance(), ilWebDAVMountInstructionsDocumentPurifier\getPurifierConfigInstance(), ilAccessibilityDocumentHtmlPurifier\getPurifierConfigInstance(), and ILIAS\LegalDocuments\HTMLPurifier\getPurifierConfigInstance().
Here is the caller graph for this function:
|
finalprotected |
Definition at line 75 of file class.ilHtmlPurifierAbstractLibWrapper.php.
References $purifier.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Definition at line 41 of file class.ilHtmlPurifierAbstractLibWrapper.php.
Referenced by getPurifier(), and setPurifier().
|
private |
Definition at line 27 of file class.ilHtmlPurifierAbstractLibWrapper.php.
|
private |
Definition at line 28 of file class.ilHtmlPurifierAbstractLibWrapper.php.