| Line | |
|---|
| 1 | <?php |
|---|
| 2 | /* |
|---|
| 3 | |
|---|
| 4 | +-----------------------------------------------------------------------+ |
|---|
| 5 | | bin/html2text.php | |
|---|
| 6 | | | |
|---|
| 7 | | This file is part of the RoundCube Webmail client | |
|---|
| 8 | | Copyright (C) 2005-2008, 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: html2text.php 2070 2008-11-20 10:29:34Z alec $ |
|---|
| 19 | |
|---|
| 20 | */ |
|---|
| 21 | |
|---|
| 22 | define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/'); |
|---|
| 23 | require INSTALL_PATH.'program/include/iniset.php'; |
|---|
| 24 | |
|---|
| 25 | $converter = new html2text($HTTP_RAW_POST_DATA); |
|---|
| 26 | |
|---|
| 27 | header('Content-Type: text/plain; charset=UTF-8'); |
|---|
| 28 | print trim($converter->get_text()); |
|---|
| 29 | |
|---|
| 30 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.