ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilSamlIdpMetadataPurifier.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
26 {
27  public function purify(string $html): string
28  {
29  return $html;
30  }
31 
32  public function purifyArray(array $htmlCollection): array
33  {
34  foreach ($htmlCollection as $key => $html) {
35  $html = $this->purify($html);
36  $htmlCollection[$key] = $html;
37  }
38 
39  return $htmlCollection;
40  }
41 }
purify(string $html)
Filters an HTML snippet/document to be XSS-free and standards-compliant.
Interface for html sanitizing functionality.
string $key
Consumer key/client ID value.
Definition: System.php:193
purifyArray(array $htmlCollection)
Filters an array of HTML snippets/documents to be XSS-free and standards-compliant.
Class ilSamlIdpMetadataPurifier.