summaryrefslogtreecommitdiff
path: root/bin/html2text.php
blob: 0f0e6ae14de9ffb59ea151574f53185d5d0e710f (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($converter->get_text(), ENT_COMPAT, 'UTF-8');

?>