alecpl
2010-06-04 f22b5439f2e783f47f61042bebb6cc53672568fd
commit | author | age
dd53e2 1 <?php
T 2 /*
677e1f 3
dd53e2 4  +-----------------------------------------------------------------------+
677e1f 5  | program/steps/utils/html2text.inc                                     |
dd53e2 6  |                                                                       |
T 7  | This file is part of the RoundCube Webmail client                     |
677e1f 8  | Copyright (C) 2005-2010, RoundCube Dev. - Switzerland                 |
dd53e2 9  | Licensed under the GNU GPL                                            |
T 10  |                                                                       |
11  | PURPOSE:                                                              |
677e1f 12  |   Convert HTML message to plain text                                  |
dd53e2 13  |                                                                       |
T 14  +-----------------------------------------------------------------------+
677e1f 15  | Author: Thomas Bruederli <roundcube@gmail.com>                        |
dd53e2 16  +-----------------------------------------------------------------------+
T 17
18  $Id$
19
20 */
21
677e1f 22 $converter = new html2text($HTTP_RAW_POST_DATA);
dd53e2 23
677e1f 24 header('Content-Type: text/plain; charset=UTF-8');
A 25 print trim($converter->get_text());
dd53e2 26 exit;
T 27
5349b7 28 ?>