|
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
|
| Line | |
|---|
| 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 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.