summaryrefslogtreecommitdiff
path: root/bin/html2text.php
blob: 2650bf2d677fea6c6f691eea0985bc15ec0aa7c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
<?php

define('INSTALL_PATH', realpath('./../') . '/');
require INSTALL_PATH.'program/include/iniset.php';

$converter = new html2text($HTTP_RAW_POST_DATA);

header('Content-Type: text/plain; charset=UTF-8');
print html_entity_decode(trim($converter->get_text()), ENT_COMPAT, 'UTF-8');

?>