ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilSamlIdpMetadataPurifier.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'Services/Html/interfaces/interface.ilHtmlPurifierInterface.php';
5
10{
14 public function purify($a_html)
15 {
16 return $a_html;
17 }
18
22 public function purifyArray(array $a_array_of_html)
23 {
24 foreach ($a_array_of_html as $key => $html) {
25 $html = $this->purify($html);
26 $a_array_of_html[$key] = $html;
27 }
28
29 return $a_array_of_html;
30 }
31}
An exception for terminatinating execution or to throw for unit testing.
Class ilSamlIdpMetadataPurifier.
purify($a_html)
Filters an HTML snippet/document to be XSS-free and standards-compliant.@access public
purifyArray(array $a_array_of_html)
Filters an array of HTML snippets/documents to be XSS-free and standards-compliant....
$key
Definition: croninfo.php:18
$html
Definition: example_001.php:87
Interface for html sanitizing functionality.