ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilSamlIdpMetadataPurifier Class Reference
+ 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. More...
 
 purifyArray (array $htmlCollection)
 Filters an array of HTML snippets/documents to be XSS-free and standards-compliant. More...
 

Detailed Description

Definition at line 21 of file class.ilSamlIdpMetadataPurifier.php.

Member Function Documentation

◆ purify()

ilSamlIdpMetadataPurifier::purify ( string  $html)

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

Implements ilHtmlPurifierInterface.

Definition at line 23 of file class.ilSamlIdpMetadataPurifier.php.

Referenced by purifyArray().

23  : string
24  {
25  return $html;
26  }
+ 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[]
Exceptions
InvalidArgumentExceptionIf one of the arrays element is not of tpye string

Implements ilHtmlPurifierInterface.

Definition at line 28 of file class.ilSamlIdpMetadataPurifier.php.

References purify().

28  : array
29  {
30  foreach ($htmlCollection as $key => $html) {
31  $html = $this->purify($html);
32  $htmlCollection[$key] = $html;
33  }
34 
35  return $htmlCollection;
36  }
purify(string $html)
Filters an HTML snippet/document to be XSS-free and standards-compliant.
+ Here is the call graph for this function:

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