ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilTermsOfServiceTrimmedDocumentPurifier Class Reference

Class ilTermsOfServiceTrimmedDocumentPurifier. More...

+ Inheritance diagram for ilTermsOfServiceTrimmedDocumentPurifier:
+ Collaboration diagram for ilTermsOfServiceTrimmedDocumentPurifier:

Public Member Functions

 __construct (ilHtmlPurifierInterface $inner)
 ilTermsOfServiceTrimmedDocumentPurifier constructor. More...
 
 purify (string $html)
 Filters an HTML snippet/document to be XSS-free and standards-compliant.
Parameters
string$html
Returns
string
More...
 
 purifyArray (array $htmlCollection)
 Filters an array of HTML snippets/documents to be XSS-free and standards-compliant.
Parameters
string[]$htmlCollection
Returns
string[]
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

 $inner
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilTermsOfServiceTrimmedDocumentPurifier::__construct ( ilHtmlPurifierInterface  $inner)

Member Function Documentation

◆ purify()

ilTermsOfServiceTrimmedDocumentPurifier::purify ( string  $html)

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

Parameters
string$html
Returns
string

Implements ilHtmlPurifierInterface.

Definition at line 27 of file class.ilTermsOfServiceTrimmedDocumentPurifier.php.

27 : string
28 {
29 return trim($this->inner->purify($html));
30 }

Referenced by purifyArray().

+ Here is the caller graph for this function:

◆ purifyArray()

ilTermsOfServiceTrimmedDocumentPurifier::purifyArray ( array  $htmlCollection)

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

Parameters
string[]$htmlCollection
Returns
string[]

Implements ilHtmlPurifierInterface.

Definition at line 35 of file class.ilTermsOfServiceTrimmedDocumentPurifier.php.

35 : array
36 {
37 foreach ($htmlCollection as $key => $html) {
38 $htmlCollection[$key] = $this->purify($html);
39 }
40
41 return $htmlCollection;
42 }
purify(string $html)
Filters an HTML snippet/document to be XSS-free and standards-compliant.string

References purify().

+ Here is the call graph for this function:

Field Documentation

◆ $inner

ilTermsOfServiceTrimmedDocumentPurifier::$inner
protected

Definition at line 13 of file class.ilTermsOfServiceTrimmedDocumentPurifier.php.

Referenced by __construct().


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