19 declare(strict_types=1);
34 $html = str_replace([
"\n",
"\r",
"\t"],
"", $html);
35 $html = preg_replace(
'# {2,}#',
" ", $html);
36 $html = preg_replace(
'/<!--(.|\s)*?-->/',
'', $html);
37 $html = preg_replace(
"/>(\s+)</",
"><", $html);
38 $html = str_replace([
" >",
" <"], [
">",
"<"], $html);
43 protected function setUp(): void
45 if (!defined(
'ANONYMOUS_USER_ID')) {
46 define(
'ANONYMOUS_USER_ID', 13);
51 $this->dic = is_object($DIC) ? clone
$DIC :
$DIC;
brutallyTrimHTML(string $html)
Customizing of pimple-DIC for ILIAS.
setGlobalVariable(string $name, $value)
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']