Skip to content
Snippets Groups Projects
Commit 86b0bcde authored by Jared Hancock's avatar Jared Hancock
Browse files

email: drop <!DOCTYPE ...> strings from email body

parent 2cba82e5
No related branches found
No related tags found
No related merge requests found
......@@ -207,8 +207,10 @@ class Format {
// Remove HEAD and STYLE sections
$html = preg_replace(
array(':<(head|style).+</\1>:is', # <head> and <style> sections
':<!\[[^]<]+\]>:'), # <![if !mso]> and friends
array('', ''),
':<!\[[^]<]+\]>:', # <![if !mso]> and friends
':<!DOCTYPE[^>]+>:', # <!DOCTYPE ... >
),
array('', '', ''),
$html);
$config = array(
'safe' => 1, //Exclude applet, embed, iframe, object and script tags.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment