ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
HTMLUtil.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Repository\HTML
;
22
23
use
ILIAS\Filesystem\Stream\Streams
;
24
use
ILIAS\HTTP
;
25
use
ILIAS\FileDelivery\Delivery
;
26
27
class
HTMLUtil
28
{
29
public
function
__construct
()
30
{
31
}
32
33
public
function
escape
(
string
$input): string
34
{
35
return
htmlspecialchars(
36
$input,
37
ENT_QUOTES | ENT_SUBSTITUTE,
38
'utf-8'
39
);
40
}
41
42
public
function
strip
(
string
$input): string
43
{
44
// see https://www.ilias.de/mantis/view.php?id=19727
45
$str =
\ilUtil::stripSlashes
($input);
46
if
($str !== $input) {
47
$str =
\ilUtil::stripSlashes
(str_replace(
"<"
,
"< "
, $input));
48
}
49
return
$str;
50
}
51
}
ILIAS\HTTP
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilUtil\stripSlashes
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
Definition:
class.ilUtil.php:392
ILIAS\Data\Text\HTML\HTMLUtil\__construct
__construct()
Definition:
HTMLUtil.php:29
ILIAS\Data\Text\HTML\HTMLUtil
Definition:
HTMLUtil.php:27
ILIAS\FileDelivery\Delivery
Definition:
BaseDelivery.php:21
ILIAS\Data\Text\HTML\HTMLUtil\strip
strip(string $input)
Definition:
HTMLUtil.php:42
ILIAS\Repository\HTML
Definition:
HTMLUtil.php:21
ILIAS\Data\Text\HTML\HTMLUtil\escape
escape(string $input)
Definition:
HTMLUtil.php:33
Streams
components
ILIAS
Repository
Service
HTML
HTMLUtil.php
Generated on Sun Aug 31 2025 23:03:35 for ILIAS by
1.8.13 (using
Doxyfile
)