summaryrefslogtreecommitdiff
path: root/roundcubemail/bin/html2text.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-11-20 10:29:34 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-11-20 10:29:34 +0000
commit2ae678dc87ed141cc3487378703d7482edfe4303 (patch)
treea48a97fdd58803038cd10f9149d669eecd845edd /roundcubemail/bin/html2text.php
parent913d24676b3d022eda8391d69497a0ed654f4ba8 (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/bin/html2text.php')
-rw-r--r--roundcubemail/bin/html2text.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/bin/html2text.php b/roundcubemail/bin/html2text.php
index e07fb3538..3839f5d34 100644
--- a/roundcubemail/bin/html2text.php
+++ b/roundcubemail/bin/html2text.php
@@ -22,7 +22,7 @@
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/');
require INSTALL_PATH.'program/include/iniset.php';
-$converter = new html2text(html_entity_decode($HTTP_RAW_POST_DATA, ENT_COMPAT, 'UTF-8'));
+$converter = new html2text($HTTP_RAW_POST_DATA);
header('Content-Type: text/plain; charset=UTF-8');
print trim($converter->get_text());