ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilMailBodyPurifier Class Reference
+ Collaboration diagram for ilMailBodyPurifier:

Public Member Functions

 purify ($content)
 

Detailed Description

Author
Niels Theen nthee.nosp@m.n@da.nosp@m.tabay.nosp@m..de

Definition at line 6 of file class.ilMailBodyPurifier.php.

Member Function Documentation

◆ purify()

ilMailBodyPurifier::purify (   $content)
Parameters
string$content
Returns
string

Definition at line 12 of file class.ilMailBodyPurifier.php.

References ilUtil\stripSlashes().

Referenced by ilMailBody\__construct().

13  {
14  $sanitizedContent = \ilUtil::stripSlashes($content);
15  if ($sanitizedContent !== $content) {
16  $sanitizedContent = \ilUtil::stripSlashes(str_replace('<', '< ', $content));
17  }
18  $sanitizedContent = str_replace("\r", '', $sanitizedContent);
19  return $sanitizedContent;
20  }
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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