ILIAS  release_8 Revision v8.24
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[]
Exceptions
InvalidArgumentExceptionIf one of the arrays element is not of tpye 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...
 

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

30 : string
31 {
32 return $html;
33 }

Referenced by purifyArray().

+ 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 38 of file class.ilSamlIdpMetadataPurifier.php.

38 : array
39 {
40 foreach ($htmlCollection as $key => $html) {
41 $html = $this->purify($html);
42 $htmlCollection[$key] = $html;
43 }
44
45 return $htmlCollection;
46 }
purify(string $html)
Filters an HTML snippet/document to be XSS-free and standards-compliant.string
string $key
Consumer key/client ID value.
Definition: System.php:193

References ILIAS\LTI\ToolProvider\$key, and purify().

+ Here is the call graph for this function:

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