diff --git a/felamimail/inc/class.felamimail_bo.inc.php b/felamimail/inc/class.felamimail_bo.inc.php index b808d450a9..a0d0e840cf 100644 --- a/felamimail/inc/class.felamimail_bo.inc.php +++ b/felamimail/inc/class.felamimail_bo.inc.php @@ -1239,8 +1239,9 @@ class felamimail_bo //$_html = str_replace("\r\n",' ',$_html); //$_html = str_replace("\t",' ',$_html); //error_log($_html); - //repair doubleencoded ampersands - $_html = str_replace('&','&',$_html); + //repair doubleencoded ampersands, and some stuff htmLawed stumbles upon with balancing switched on + $_html = str_replace(array('&','
hi".$_html; $_html = html::purify($_html,self::$htmLawed_config,array(),true); //if ($hasOther) $_html = $matches[1]. $_html. $matches[3]; // clean out comments , should not be needed as purify should do the job.therekram