summaryrefslogtreecommitdiff
path: root/bin/html2text.php
blob: 478ccced9ac04507f9cae0a413a2a4498a70ba0c (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(html_entity_decode($HTTP_RAW_POST_DATA, ENT_COMPAT, 'UTF-8'));

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

?>