Changeset 2248 in subversion
- Timestamp:
- Jan 21, 2009 2:55:09 AM (4 years ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/program/lib/html2text.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/lib/html2text.php
r2186 r2248 177 177 '/&(pound|#163);/i', // Pound sign 178 178 '/&(euro|#8364);/i', // Euro sign 179 '/&[^&;]+;/i', // Unknown/unhandled entities180 179 '/[ ]{2,}/' // Runs of spaces, post-handling 181 180 ); … … 221 220 '£', 222 221 'EUR', // Euro sign. ? 223 '', // Unknown/unhandled entities224 222 ' ' // Runs of spaces, post-handling 225 223 ); … … 475 473 // Replace known html entities 476 474 $text = html_entity_decode($text, ENT_COMPAT, 'UTF-8'); 475 476 // Remove unknown/unhandled entities (this cannot be done in search-and-replace block) 477 $text = preg_replace('/&[^&;]+;/i', '', $text); 477 478 478 479 // Strip any other HTML tags
Note: See TracChangeset
for help on using the changeset viewer.
