From 5e972e133ec4a9fc29f2aa067b3b5779fbb3570a Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Sat, 28 Jul 2012 03:23:14 -0400 Subject: [PATCH] Add html cleanup (formatting) to mail parser -> piped emails. --- include/class.mailparse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class.mailparse.php b/include/class.mailparse.php index f56006fa9..8d162e52a 100644 --- a/include/class.mailparse.php +++ b/include/class.mailparse.php @@ -140,7 +140,7 @@ class Mail_Parse { //Cleanup the html. $body=str_replace("</DIV><DIV>", "\n", $body); $body=str_replace(array("<br>", "<br />", "<BR>", "<BR />"), "\n", $body); - $body=Format::striptags($body); + $body=Format::striptags(Format::html($body)); } } return $body; -- GitLab