Skip to content
Snippets Groups Projects
Commit 7536e7f6 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #187 from greezybacon/issue/drop-doctype


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

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 72a7c385 86b0bcde
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