HEADcourier-fixdev-browser-capabilitiespdorelease-0.6release-0.7release-0.8
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | /* |
|---|
| 3 | |
|---|
| 4 | +-----------------------------------------------------------------------+ |
|---|
| 5 | | program/steps/utils/html2text.inc | |
|---|
| 6 | | | |
|---|
| 7 | | This file is part of the Roundcube Webmail client | |
|---|
| 8 | | Copyright (C) 2005-2010, Roundcube Dev. - Switzerland | |
|---|
| 9 | | Licensed under the GNU GPL | |
|---|
| 10 | | | |
|---|
| 11 | | PURPOSE: | |
|---|
| 12 | | Convert HTML message to plain text | |
|---|
| 13 | | | |
|---|
| 14 | +-----------------------------------------------------------------------+ |
|---|
| 15 | | Author: Thomas Bruederli <roundcube@gmail.com> | |
|---|
| 16 | +-----------------------------------------------------------------------+ |
|---|
| 17 | |
|---|
| 18 | $Id$ |
|---|
| 19 | |
|---|
| 20 | */ |
|---|
| 21 | |
|---|
| 22 | $converter = new html2text($HTTP_RAW_POST_DATA); |
|---|
| 23 | |
|---|
| 24 | header('Content-Type: text/plain; charset=UTF-8'); |
|---|
| 25 | print trim($converter->get_text()); |
|---|
| 26 | exit; |
|---|
| 27 | |
|---|
| 28 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.