summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/html2text.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/html2text.php b/bin/html2text.php
index 0f0e6ae14..2650bf2d6 100644
--- a/bin/html2text.php
+++ b/bin/html2text.php
@@ -6,6 +6,6 @@ require INSTALL_PATH.'program/include/iniset.php';
$converter = new html2text($HTTP_RAW_POST_DATA);
header('Content-Type: text/plain; charset=UTF-8');
-print html_entity_decode($converter->get_text(), ENT_COMPAT, 'UTF-8');
+print html_entity_decode(trim($converter->get_text()), ENT_COMPAT, 'UTF-8');
?>