Thinkphp kindeditor 内容转义

参考了:【解决】ThinkPHP整合Html编辑器时出现自动转义的问题

遇到问题也是保存到数据库中的内容,会转义成“\"”

使用

$data['content'] = stripslashes(htmlspecialchars_decode($_POST['content']));

可以将"\""的转义处理好。

posted @ 2016-04-06 10:02  五毛钱的饼  阅读(472)  评论(0)    收藏  举报