source: github/program/steps/utils/html2text.inc @ 2753a4c

HEADcourier-fixdev-browser-capabilitiespdorelease-0.6release-0.7release-0.8
Last change on this file since 2753a4c was e019f2d, checked in by alecpl <alec@…>, 3 years ago
  • s/RoundCube/Roundcube/
  • Property mode set to 100644
File size: 1.1 KB
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
24header('Content-Type: text/plain; charset=UTF-8');
25print trim($converter->get_text());
26exit;
27
28
Note: See TracBrowser for help on using the repository browser.