alecpl
2008-12-08 9e8a1756b7032fba21fec82efda57cf896a2735a
commit | author | age
f11541 1 <?php
155bbb 2 /*
A 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$
19
20 */
f11541 21
b685e9 22 define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/');
47124c 23 require INSTALL_PATH.'program/include/iniset.php';
f11541 24
300fc6 25 $converter = new html2text($HTTP_RAW_POST_DATA);
f11541 26
T 27 header('Content-Type: text/plain; charset=UTF-8');
9770fe 28 print trim($converter->get_text());
f11541 29
809428 30 ?>