ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilHtmlPurifierInterface Interface Reference

Interface for html sanitizing functionality. More...

+ Inheritance diagram for ilHtmlPurifierInterface:
+ Collaboration diagram for ilHtmlPurifierInterface:

Public Member Functions

 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...
 

Detailed Description

Interface for html sanitizing functionality.

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de

Definition at line 25 of file interface.ilHtmlPurifierInterface.php.

Member Function Documentation

◆ purify()

ilHtmlPurifierInterface::purify ( string  $html)

Filters an HTML snippet/document to be XSS-free and standards-compliant.

Implemented in ilHtmlPurifierComposite, ilHtmlPurifierAbstractLibWrapper, and ilAccessibilityTrimmedDocumentPurifier.

◆ purifyArray()

ilHtmlPurifierInterface::purifyArray ( array  $htmlCollection)

Filters an array of HTML snippets/documents to be XSS-free and standards-compliant.

Parameters
string[]$htmlCollection
Returns
string[]
Exceptions
InvalidArgumentExceptionIf one of the arrays element is not of tpye string

Implemented in ilHtmlPurifierComposite, ilHtmlPurifierAbstractLibWrapper, and ilAccessibilityTrimmedDocumentPurifier.


The documentation for this interface was generated from the following file: