diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-06-22 18:58:47 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-06-22 18:58:47 +0000 |
| commit | 630e543d76dd9d1eec9a0ef56afd103fe0999a69 (patch) | |
| tree | 80b45469cd2c16d083099bd7b58e8a70baaf3bd2 /roundcubemail/program | |
| parent | bf6166a5bc3396e98a51211abf74d9ce5f666589 (diff) | |
- Fix regular expression for HTML entities
git-svn-id: https://svn.roundcube.net/trunk@3777 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/lib/html2text.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/lib/html2text.php b/roundcubemail/program/lib/html2text.php index 572942e21..9c5267f62 100644 --- a/roundcubemail/program/lib/html2text.php +++ b/roundcubemail/program/lib/html2text.php @@ -476,7 +476,7 @@ class html2text $text = preg_replace_callback($this->callback_search, array('html2text', '_preg_callback'), $text); // Remove unknown/unhandled entities (this cannot be done in search-and-replace block) - $text = preg_replace('/&[^&;]+;/i', '', $text); + $text = preg_replace('/&#?[a-z0-9]{2,7};/i', '', $text); // Strip any other HTML tags $text = strip_tags($text, $this->allowed_tags); |
