互联网的规则是平等的 不指定

Else , 2010/08/02 00:21 , 程员外的那些事儿 , Comments(0) , Reads(482) , Via Original
互联网的规则是平等的!

用google搜索的结果

搜索 tidy_parse_string 获得约 131,000 条结果(启用了安全搜索功能)


用baidu搜索的结果


百度一下,找到相关网页约1,680篇,用时0.105秒


所以中文站的pr差,是因没没有尊守规则吧!



加一个处理的方法


$config = array('indent' => TRUE,
                'output-xhtml' => TRUE,
                'alt-text' => '{et_pic_art}',
                'wrap' => 200);

    $tidy = tidy_parse_string($lst['content'] , $config, 'UTF8');
    $body = tidy_get_body($tidy);

    $tem_content = $body->value;
    $tem_content = str_replace('<body>', '', $tem_content);
    $tem_content = str_replace('</body>', '', $tem_content);
Add a comment

Nickname

Site URI

Email

Enable HTML Enable UBB Enable Emots Hidden Remember [Login] [Register]