diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-11-20 10:29:34 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-11-20 10:29:34 +0000 |
| commit | 2ae678dc87ed141cc3487378703d7482edfe4303 (patch) | |
| tree | a48a97fdd58803038cd10f9149d669eecd845edd /roundcubemail/program/lib | |
| parent | 913d24676b3d022eda8391d69497a0ed654f4ba8 (diff) | |
- Better HTML entities conversion in html2text (#1485519)
git-svn-id: https://svn.roundcube.net/trunk@2070 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/lib')
| -rw-r--r-- | roundcubemail/program/lib/html2text.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/roundcubemail/program/lib/html2text.php b/roundcubemail/program/lib/html2text.php index 4180cac28..938dfecfe 100644 --- a/roundcubemail/program/lib/html2text.php +++ b/roundcubemail/program/lib/html2text.php @@ -232,7 +232,7 @@ class html2text '--', '-', '*', - '£', + '£', 'EUR', // Euro sign. € ? '', // Unknown/unhandled entities ' ' // Runs of spaces, post-handling @@ -465,7 +465,10 @@ class html2text // Convert <PRE> $this->_convert_pre($text); - + + // Replace known html entities + $text = html_entity_decode($text, ENT_COMPAT, 'UTF-8'); + // Run our defined search-and-replace $text = preg_replace($this->search, $this->replace, $text); |
