diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-04-28 18:07:12 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-04-28 18:07:12 +0000 |
| commit | 4b8a0ab1373c7af1488c38352545d8cab7330e40 (patch) | |
| tree | 463b2c8457680769a98dc5144a09fb600f454f19 /roundcubemail/bin/html2text.php | |
| parent | 1d33c02139d4cbb424a7d720723c353d0580b1f2 (diff) | |
Merged branch devel-addressbook from r443 back to trunk
git-svn-id: https://svn.roundcube.net/trunk@543 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/bin/html2text.php')
| -rw-r--r-- | roundcubemail/bin/html2text.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/roundcubemail/bin/html2text.php b/roundcubemail/bin/html2text.php new file mode 100644 index 000000000..e0e2679f7 --- /dev/null +++ b/roundcubemail/bin/html2text.php @@ -0,0 +1,16 @@ +<?php + +require_once('../program/lib/html2text.inc'); + +$htmlText = $HTTP_RAW_POST_DATA; +$converter = new html2text($htmlText); + +header('Content-Type: text/plain; charset=UTF-8'); +$plaintext = $converter->get_text(); + +if (function_exists('html_entity_decode')) + print html_entity_decode($plaintext, ENT_COMPAT, 'UTF-8'); +else + print $plaintext; + +?>
\ No newline at end of file |
