baidu编辑器输出问题

           
$content = I('post.content', '', 'htmlspecialchars');过滤后是
维吾尔群二无艾弗森<img src="http://dashboard.bojietech.cn/Public/Uploads/News/Article/5a2241a82afea.png" alt="" />
htmlspecialchars_decode需用此函数解析才正常在html显示

 


$content = $_POST['content'] 不过滤:
<p>34按时大润发<img src="/static/ueditor/php/upload/image/20171129/1511926875820506.png" title="1511926875820506.png" alt="完善词条问题.png"/>asdc此<img src="/static/ueditor/php/upload/image/20171129/1511926961683028.png" title="1511926961683028.png" alt="登录界面忘记密码.png"/></p>
可直接在html显示

posted @ 2017-12-05 09:14  王玉岩  阅读(79)  评论(0编辑  收藏  举报