ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilMailBodyPurifier Class Reference
+ Collaboration diagram for ilMailBodyPurifier:

Public Member Functions

 purify (string $content)
 

Detailed Description

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

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

Member Function Documentation

◆ purify()

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

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

References ilUtil\stripSlashes().

Referenced by ilMailBody\__construct().

13  : string
14  {
15  $sanitizedContent = \ilUtil::stripSlashes($content);
16 
17  if ($sanitizedContent !== $content) {
18  $sanitizedContent = \ilUtil::stripSlashes(str_replace('<', '< ', $content));
19  }
20  $sanitizedContent = str_replace("\r", '', $sanitizedContent);
21 
22  return $sanitizedContent;
23  }
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: