ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Repository\HTML\HTMLUtil Class Reference
+ Collaboration diagram for ILIAS\Repository\HTML\HTMLUtil:

Public Member Functions

 __construct ()
 
 escape (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 htmlentities($input);
36  }

◆ strip()

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

Definition at line 38 of file HTMLUtil.php.

References ilUtil\stripSlashes().

38  : string
39  {
40  // see https://www.ilias.de/mantis/view.php?id=19727
41  $str = \ilUtil::stripSlashes($input);
42  if ($str !== $input) {
43  $str = \ilUtil::stripSlashes(str_replace("<", "< ", $input));
44  }
45  return $str;
46  }
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
+ Here is the call graph for this function:

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