ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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 8 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, ilTermsOfServiceTrimmedDocumentPurifier, ilAccessibilityTrimmedDocumentPurifier, ilHtmlPurifierAbstractLibWrapper, 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[]

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


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