|
ILIAS
release_8 Revision v8.24
|
Composite for nesting multiple purifiers. More...
Inheritance diagram for ilHtmlPurifierComposite:
Collaboration diagram for ilHtmlPurifierComposite:Public Member Functions | |
| addPurifier (ilHtmlPurifierInterface $purifier) | |
| Adds a node to composite. More... | |
| removePurifier (ilHtmlPurifierInterface $purifier) | |
| Removes a node from composite. 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... | |
| 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... | |
Protected Attributes | |
| array | $purifiers = [] |
Composite for nesting multiple purifiers.
Definition at line 25 of file class.ilHtmlPurifierComposite.php.
| ilHtmlPurifierComposite::addPurifier | ( | ilHtmlPurifierInterface | $purifier | ) |
Adds a node to composite.
| ilHtmlPurifierInterface | $purifier | Instance of ilHtmlPurifierInterface |
Definition at line 35 of file class.ilHtmlPurifierComposite.php.
| ilHtmlPurifierComposite::purify | ( | string | $html | ) |
Filters an HTML snippet/document to be XSS-free and standards-compliant.
| string | $html |
Implements ilHtmlPurifierInterface.
Definition at line 61 of file class.ilHtmlPurifierComposite.php.
| ilHtmlPurifierComposite::purifyArray | ( | array | $htmlCollection | ) |
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 70 of file class.ilHtmlPurifierComposite.php.
References ILIAS\LTI\ToolProvider\$key.
| ilHtmlPurifierComposite::removePurifier | ( | ilHtmlPurifierInterface | $purifier | ) |
Removes a node from composite.
| ilHtmlPurifierInterface | $purifier | Instance of ilHtmlPurifierInterface |
Definition at line 50 of file class.ilHtmlPurifierComposite.php.
References ILIAS\LTI\ToolProvider\$key.
|
protected |
Definition at line 28 of file class.ilHtmlPurifierComposite.php.