summaryrefslogtreecommitdiff
path: root/program/lib/html2text.inc
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2006-09-13 04:49:18 +0000
committersvncommit <devs@roundcube.net>2006-09-13 04:49:18 +0000
commit40ed9be1ee7ca4c4950573a18f55aeaaa15ecb3a (patch)
treeae923d9820382661c69db7b251fa7f676059b2ed /program/lib/html2text.inc
parent7139e33e6c7dcd206e166416e7b5742bc3849cb9 (diff)
Fixed bug #1484019 and #1484020
Diffstat (limited to 'program/lib/html2text.inc')
-rw-r--r--program/lib/html2text.inc8
1 files changed, 3 insertions, 5 deletions
diff --git a/program/lib/html2text.inc b/program/lib/html2text.inc
index 82a254e56..36849a492 100644
--- a/program/lib/html2text.inc
+++ b/program/lib/html2text.inc
@@ -126,19 +126,18 @@ class html2text
'/(<table[^>]*>|<\/table>)/i', // <table> and </table>
'/(<tr[^>]*>|<\/tr>)/i', // <tr> and </tr>
'/<td[^>]*>(.+?)<\/td>/i', // <td> and </td>
- '/<th[^>]*>(.+?)<\/th>/i', // <th> and </th>
+ '/<th[^>]*>(.+?)<\/th>/ie', // <th> and </th>
'/&nbsp;/i',
'/&quot;/i',
'/&gt;/i',
'/&lt;/i',
- '/&amp;/i',
+ '/&(amp|#38);/i',
'/&copy;/i',
'/&trade;/i',
'/&#8220;/',
'/&#8221;/',
'/&#8211;/',
- '/&#8217;/',
- '/&#38;/',
+ '/&#(8217|39);/',
'/&#169;/',
'/&#8482;/',
'/&#151;/',
@@ -188,7 +187,6 @@ class html2text
'"',
'-',
"'",
- '&',
'(c)',
'(tm)',
'--',