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

Class ilSamlIdpMetadataPurifier. More...

+ Inheritance diagram for ilSamlIdpMetadataPurifier:
+ Collaboration diagram for ilSamlIdpMetadataPurifier:

Public Member Functions

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

Detailed Description

Member Function Documentation

◆ purify()

ilSamlIdpMetadataPurifier::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 12 of file class.ilSamlIdpMetadataPurifier.php.

Referenced by purifyArray().

12  : string
13  {
14  return $html;
15  }
+ Here is the caller graph for this function:

◆ purifyArray()

ilSamlIdpMetadataPurifier::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 20 of file class.ilSamlIdpMetadataPurifier.php.

References purify().

20  : array
21  {
22  foreach ($htmlCollection as $key => $html) {
23  $html = $this->purify($html);
24  $htmlCollection[$key] = $html;
25  }
26 
27  return $htmlCollection;
28  }
purify(string $html)
Filters an HTML snippet/document to be XSS-free and standards-compliant.string
+ Here is the call graph for this function:

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