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

html: Disable `balance`, which corrupts some html

(Most notably is the mail from Outlook, which embeds block elements inside
of <font> elements.)
parent 08b583e3
No related branches found
No related tags found
No related merge requests found
...@@ -212,7 +212,7 @@ class Format { ...@@ -212,7 +212,7 @@ class Format {
$html); $html);
$config = array( $config = array(
'safe' => 1, //Exclude applet, embed, iframe, object and script tags. 'safe' => 1, //Exclude applet, embed, iframe, object and script tags.
'balance' => 1, //balance and close unclosed tags. 'balance' => 0, // No balance — corrupts poorly formatted Outlook html
'comment' => 1, //Remove html comments (OUTLOOK LOVE THEM) 'comment' => 1, //Remove html comments (OUTLOOK LOVE THEM)
'tidy' => -1, 'tidy' => -1,
'deny_attribute' => 'id', 'deny_attribute' => 'id',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment