123456789101112131415161718192021222324252627282930313233343536 |
- <?php
-
-
-
- $html = stream_get_contents(fopen('php://input', 'r'));
-
-
- if (get_magic_quotes_gpc() || get_magic_quotes_runtime()) {
- $html = stripslashes($html);
- }
-
- $params['links'] = (bool) rcube_utils::get_input_value('_do_links', rcube_utils::INPUT_GET);
- $params['width'] = (int) rcube_utils::get_input_value('_width', rcube_utils::INPUT_GET);
-
- $text = $RCMAIL->html2text($html, $params);
-
- header('Content-Type: text/plain; charset=' . RCUBE_CHARSET);
- print $text;
- exit;
|