41 if (!$html || !is_string($html))
46 $html = preg_replace(
'/<(script|iframe)(.*?)>(.*?)(<\\/\\1.*?>)/is',
'', $html);
47 if (Loader::includeModule(
'fileman'))
49 $html = Fileman\Block\Content\SliceConverter::sanitize($html);
65 '<st yle ',
'<st yle ',
66 ' st yle="',
' st yle="',
67 ' st yle=\'',
' st yle=\'',
71 ' style="',
' style="',
72 ' style=\'',
' style=\'',
86 $html = str_replace(
'<body class="">{}',
'<body class="">', $html);
87 $html = str_replace(
'</style>{}',
'</style>', $html);
94 $html = preg_replace(
'/<st yle.*?>(.*?)<\/style>/is',
'</style>', $html);
95 $html = preg_replace(
'/<\/style>([\s]*?)<\/style>/is',
'</style>', $html);
107 public static function removePhp($string =
'', $previousString,
User $user =
null)
110 Loader::includeModule(
'fileman');
111 return Fileman\Block\EditorMail::removePhpFromHtml(
static removePhp($string='', $previousString, User $user=null)
static fixTemplateStyles($html)
static sanitizeHtml($html, $previousHtml='', User $user=null)
static fixReplacedStyles($html)