Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3310700
html2text.inc
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
html2text.inc
View Options
<
?
php
/*
+-----------------------------------------------------------------------+
| program/steps/utils/html2text.inc |
| |
| This file is part of the Roundcube Webmail client |
| Copyright (C) 2005-2010, Roundcube Dev. - Switzerland |
| Licensed under the GNU GPL |
| |
| PURPOSE: |
| Convert HTML message to plain text |
| |
+-----------------------------------------------------------------------+
| Author: Thomas Bruederli <roundcube@gmail.com> |
+-----------------------------------------------------------------------+
$Id$
*/
$
html
=
$
HTTP_RAW_POST_DATA
;
// Replace emoticon images with its text representation
$
html
=
rcmail_replace_emoticons
(
$
html
);
$
converter
=
new
html2text
(
$
html
);
header
(
'
Content
-
Type
:
text
/
plain
;
charset
=
UTF
-
8
'
);
print
rtrim
(
$
converter
-
>
get_text
());
exit
;
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Apr 9, 12:39 PM (21 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
529101
Default Alt Text
html2text.inc (1 KB)
Attached To
Mode
R3 roundcubemail
Attached
Detach File
Event Timeline
Log In to Comment