summaryrefslogtreecommitdiff
path: root/program/steps/utils/html2text.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-12-06 11:13:55 +0000
committeralecpl <alec@alec.pl>2010-12-06 11:13:55 +0000
commit74728935122fe35ed97c40092080cc7dfd4b7052 (patch)
tree8a523405d4411c74a583be07555c8d49cbf380ef /program/steps/utils/html2text.inc
parent9e81b55616ea64e1a754174a7008efac26a2f285 (diff)
- Fix plaintext versions of HTML messages don't contain placeholders for emotions (#1485206)
Diffstat (limited to 'program/steps/utils/html2text.inc')
-rw-r--r--program/steps/utils/html2text.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/program/steps/utils/html2text.inc b/program/steps/utils/html2text.inc
index ef74ec49e..15c6a52a4 100644
--- a/program/steps/utils/html2text.inc
+++ b/program/steps/utils/html2text.inc
@@ -19,7 +19,12 @@
*/
-$converter = new html2text($HTTP_RAW_POST_DATA);
+$html = $HTTP_RAW_POST_DATA;
+
+// Replace emoticon images with its text representation
+$html = rcmail_replace_emoticons($html);
+
+$converter = new html2text($html);
header('Content-Type: text/plain; charset=UTF-8');
print rtrim($converter->get_text());