ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilContainerBaseXmlParser.php
Go to the documentation of this file.
1<?php
2
20{
21 protected function trimAndStripAttribs(array $attribs) : array
22 {
23 $ret = [];
24 foreach ($attribs as $k => $v) {
25 $ret[$k] = $this->trimAndStrip((string) $v);
26 }
27 return $ret;
28 }
29
30 protected function trimAndStrip(string $input) : string
31 {
32 return ilUtil::stripSlashes(trim($input));
33 }
34}
An exception for terminatinating execution or to throw for unit testing.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Base class for sax-based expat parsing extended classes need to overwrite the method setHandlers and ...
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
$ret
Definition: parser.php:6