source: subversion/branches/devel-vnext/_old/bin/html2text.php @ 588

Last change on this file since 588 was 588, checked in by till, 6 years ago
  • moved old files into _old/
  • prepairing for rc1-based commit
File size: 346 bytes
RevLine 
[588]1<?php
2
3require_once('../program/lib/html2text.inc');
4
5$htmlText = $HTTP_RAW_POST_DATA;
6$converter = new html2text($htmlText);
7
8header('Content-Type: text/plain; charset=UTF-8');
9$plaintext = $converter->get_text();
10
11if (function_exists('html_entity_decode'))
12        print html_entity_decode($plaintext, ENT_COMPAT, 'UTF-8');
13else
14        print $plaintext;
15
16?>
Note: See TracBrowser for help on using the repository browser.