19declare(strict_types=1);
33 public function escape(
string $input): string
35 return htmlspecialchars(
37 ENT_QUOTES | ENT_SUBSTITUTE,
44 return str_replace([
"{",
"}"], [
"{",
"}"], $input);
47 public function strip(
string $input): string
51 if ($str !== $input) {
Stream factory which enables the user to create streams without the knowledge of the concrete class.
escapeCurly(string $input)
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...