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

Preserve whitespace on text emails

parent 4dc4dc14
No related branches found
No related tags found
No related merge requests found
......@@ -142,10 +142,12 @@ class Format {
'safe' => 1, //Exclude applet, embed, iframe, object and script tags.
'balance' => 1, //balance and close unclosed tags.
'comment' => 1, //Remove html comments (OUTLOOK LOVE THEM)
'tidy' => -1, // Clean extra whitspace
'schemes' => 'href: aim, feed, file, ftp, gopher, http, https, irc, mailto, news, nntp, sftp, ssh, telnet; *:file, http, https; src: cid, http, https, data'
);
if (!preg_match('/style="[^"]*white-space:\s*pre/i', $html) !== false)
$config['tidy'] = -1; // Clean extra whitspace
return Format::html($html, $config);
}
......
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