Permalink
Browse files

html: Disable `balance`, which corrupts some html

(Most notably is the mail from Outlook, which embeds block elements inside
of <font> elements.)
  • Loading branch information...
1 parent 08b583e commit 9ae01bf208060528a05164d22817e776fa75c7ef @greezybacon greezybacon committed May 13, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 include/class.format.php
@@ -212,7 +212,7 @@ function safe_html($html) {
$html);
$config = array(
'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)
'tidy' => -1,
'deny_attribute' => 'id',

0 comments on commit 9ae01bf

Please sign in to comment.