ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilSamlIdpMetadataPurifier.php
Go to the documentation of this file.
1 <?php declare(strict_types=1);
2 /* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
8 {
12  public function purify(string $html) : string
13  {
14  return $html;
15  }
16 
20  public function purifyArray(array $htmlCollection) : array
21  {
22  foreach ($htmlCollection as $key => $html) {
23  $html = $this->purify($html);
24  $htmlCollection[$key] = $html;
25  }
26 
27  return $htmlCollection;
28  }
29 }
purify(string $html)
Filters an HTML snippet/document to be XSS-free and standards-compliant.string
Interface for html sanitizing functionality.
purifyArray(array $htmlCollection)
Filters an array of HTML snippets/documents to be XSS-free and standards-compliant.$htmlCollection string[]
Class ilSamlIdpMetadataPurifier.