ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilTermsOfServiceTrimmedDocumentPurifier Class Reference

Class ilTermsOfServiceTrimmedDocumentPurifier. More...

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

Public Member Functions

 __construct (\ilHtmlPurifierInterface $inner)
 ilTermsOfServiceTrimmedDocumentPurifier constructor. More...
 
 purify ($a_html)
 Filters an HTML snippet/document to be XSS-free and standards-compliant.@access public

Parameters
string$a_htmlHTML snippet/document
More...
 
 purifyArray (array $a_array_of_html)
 Filters an array of HTML snippets/documents to be XSS-free and standards-compliant.@access public

Parameters
array$a_array_of_htmlHTML snippet/document
More...
 
 purify ($a_html)
 Filters an HTML snippet/document to be XSS-free and standards-compliant. More...
 
 purifyArray (array $a_array_of_html)
 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)

ilTermsOfServiceTrimmedDocumentPurifier constructor.

Parameters
\ilHtmlPurifierInterface$inner

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

References $inner.

Member Function Documentation

◆ purify()

ilTermsOfServiceTrimmedDocumentPurifier::purify (   $a_html)

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

Parameters
string$a_htmlHTML snippet/document

Implements ilHtmlPurifierInterface.

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

28 {
29 return trim($this->inner->purify($a_html));
30 }

Referenced by purifyArray().

+ Here is the caller graph for this function:

◆ purifyArray()

ilTermsOfServiceTrimmedDocumentPurifier::purifyArray ( array  $a_array_of_html)

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

Parameters
array$a_array_of_htmlHTML snippet/document

Implements ilHtmlPurifierInterface.

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

36 {
37 foreach ($a_array_of_html as $key => $html) {
38 $a_array_of_html[$key] = $this->purify($html);
39 }
40
41 return $a_array_of_html;
42 }
purify($a_html)
Filters an HTML snippet/document to be XSS-free and standards-compliant.@access public
$key
Definition: croninfo.php:18
$html
Definition: example_001.php:87

References $html, $key, and 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: