ILIAS  trunk Revision v11.0_alpha-1843-g9e1fad99175
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilSamlIdpMetadataPurifier.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 {
23  public function purify(string $html): string
24  {
25  return $html;
26  }
27 
28  public function purifyArray(array $htmlCollection): array
29  {
30  foreach ($htmlCollection as $key => $html) {
31  $html = $this->purify($html);
32  $htmlCollection[$key] = $html;
33  }
34 
35  return $htmlCollection;
36  }
37 }
purify(string $html)
Filters an HTML snippet/document to be XSS-free and standards-compliant.
Interface for html sanitizing functionality.
purifyArray(array $htmlCollection)
Filters an array of HTML snippets/documents to be XSS-free and standards-compliant.