public function getWxArticle(){
    $url = I('url');
    if ($url) {
        $content = file_get_contents($url);
    }else{
        $content = file_get_contents('http://mp.weixin.qq.com/s/Ojh94gUVU2okO-byE9wNqQ');
    }
    
    //$content = preg_replace("/data-src=\"/", "src=\"http://read.html5.qq.com/image?src=forum&q=5&r=0&imgflag=7&imageUrl=",$content); 
    $content = str_replace("//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/moon368f86.js", "",$content);
    $content = str_replace("", "",$content);
    echo $content;

}        
分类: 未分类

0 条评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注