From 08267eacc7565a3f2f8956bfb51dabcd45ce2472 Mon Sep 17 00:00:00 2001 From: alec Date: Mon, 28 Nov 2011 08:10:44 +0000 Subject: - Fix handling HTML entities when converting HTML to text (#1488212) git-svn-id: https://svn.roundcube.net/trunk@5497 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/lib/html2text.php | 96 ++++++++++++++++++++------------- 1 file changed, 58 insertions(+), 38 deletions(-) (limited to 'roundcubemail/program/lib') diff --git a/roundcubemail/program/lib/html2text.php b/roundcubemail/program/lib/html2text.php index 1ab16055b..9fc96eac7 100644 --- a/roundcubemail/program/lib/html2text.php +++ b/roundcubemail/program/lib/html2text.php @@ -145,7 +145,6 @@ class html2text var $search = array( "/\r/", // Non-legal carriage return "/[\n\t]+/", // Newlines and tabs - '/[ ]{2,}/', // Runs of spaces, pre-handling '/]*>.*?<\/script>/i', //