]> git.donarmstrong.com Git - roundcube.git/blob - bin/html2text.php
Imported Upstream version 0.1~rc1~dfsg
[roundcube.git] / bin / html2text.php
1 <?php
2
3 require_once('../program/lib/html2text.inc');
4
5 $htmlText = $HTTP_RAW_POST_DATA;
6 $converter = new html2text($htmlText);
7
8 header('Content-Type: text/plain; charset=UTF-8');
9 $plaintext = $converter->get_text();
10
11 if (function_exists('html_entity_decode'))
12         print html_entity_decode($plaintext, ENT_COMPAT, 'UTF-8');
13 else
14         print $plaintext;
15
16 ?>