ILIAS  release_7 Revision v7.30-3-g800a261c036
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}
An exception for terminatinating execution or to throw for unit testing.
Class ilSamlIdpMetadataPurifier.
purifyArray(array $htmlCollection)
Filters an array of HTML snippets/documents to be XSS-free and standards-compliant....
purify(string $html)
Filters an HTML snippet/document to be XSS-free and standards-compliant.string
Interface for html sanitizing functionality.