ILIAS  release_8 Revision v8.23
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.

Parameters
string$html
Returns
string

Implemented in ilHtmlPurifierComposite, ilHtmlPurifierAbstractLibWrapper, ilTermsOfServiceTrimmedDocumentPurifier, ilAccessibilityTrimmedDocumentPurifier, and ilSamlIdpMetadataPurifier.

◆ 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, ilTermsOfServiceTrimmedDocumentPurifier, ilSamlIdpMetadataPurifier, and ilAccessibilityTrimmedDocumentPurifier.


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