<?php
require_once 'class.html2text.inc';
$html=file_get_contents('http://www.sohu.com/');
$converter = new html2text($html);
$content=$converter->get_text();
echo mb_convert_encoding($content, "UTF-8", "GBK");
?>
require_once 'class.html2text.inc';
$html=file_get_contents('http://www.sohu.com/');
$converter = new html2text($html);
$content=$converter->get_text();
echo mb_convert_encoding($content, "UTF-8", "GBK");
?>