ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Repository\HTML\HTMLUtil Class Reference
+ Collaboration diagram for ILIAS\Repository\HTML\HTMLUtil:

Public Member Functions

 __construct ()
 
 escape (string $input)
 
 escapeCurly (string $input)
 
 strip (string $input)
 

Detailed Description

Definition at line 27 of file HTMLUtil.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Repository\HTML\HTMLUtil::__construct ( )

Definition at line 29 of file HTMLUtil.php.

30 {
31 }

Member Function Documentation

◆ escape()

ILIAS\Repository\HTML\HTMLUtil::escape ( string  $input)

Definition at line 33 of file HTMLUtil.php.

33 : string
34 {
35 return htmlspecialchars(
36 $input,
37 ENT_QUOTES | ENT_SUBSTITUTE,
38 'utf-8'
39 );
40 }

◆ escapeCurly()

ILIAS\Repository\HTML\HTMLUtil::escapeCurly ( string  $input)

Definition at line 42 of file HTMLUtil.php.

42 : string
43 {
44 return str_replace(["{", "}"], ["{", "}"], $input);
45 }

◆ strip()

ILIAS\Repository\HTML\HTMLUtil::strip ( string  $input)

Definition at line 47 of file HTMLUtil.php.

47 : string
48 {
49 // see https://www.ilias.de/mantis/view.php?id=19727
50 $str = \ilUtil::stripSlashes($input);
51 if ($str !== $input) {
52 $str = \ilUtil::stripSlashes(str_replace("<", "< ", $input));
53 }
54 return $str;
55 }
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")

References ilUtil\stripSlashes().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: