[不花钱站长]:从免费域名开始[0元] Oracle永久免费VPS[0元] VPS环境搭建免费脚本[0元] 秒变大盘挂载免费网盘[0元] 小白免费采集器1天500W[0元] CF免费DNS+CDN服务[0元]
[零基础网赚]:撸本站免费源码[0元] 网站强引免费蜘蛛法[0元] 图片视频文件免费存储[0元] 外链轻松发布免费友链[0元] 入坑免费教程学习源代码[0元] 网上百种+赚钱联盟推荐[?元]

↑↑VPS推荐网 WWW.VPS.COM.IN 稳定 便宜 免备案↑↑


您现在的位置是:首页 > 全球[VPS测评] >  config,default,html,htmlspecialchars,php,thinkphp,ueditor,代码,使用,,国外永久免费VPS

UEditor赋值html数据无法按照原来样式显示怎么办?

全球[VPS测评]来源:VPS推荐网点击:903
【性价之王】【线路之王】【价格之王】【配置之王】
【免费之王】【香港首推】【梯子之王】【独服之王】
UEditor赋值html数据无法按照原来样式显示怎么办?UEditor是百度前端团队推出的一款功能强大的富文本编辑器,最近在项目中使用了UEditor,在更新内容时向UEditor赋值时遇到了问题,UEditor赋值html数据无法按照原来样式显示,而是直接显示html代码。

经过检查发现,我是在Thinkphp5中使用的UEditor,而我又设置了输入过滤,使用了htmlspecialchars过滤提交的html代码。解决办法有如下两种:

1.(不推荐)关闭Thinkphp5的htmlspecialchars过滤,在config.php文件中找到default_filter项删除配置的htmlspecialchars保存即可。

2.(推荐)在赋值时进行二次转义:{$article.content|htmlspecialchars_decode},如果你还设置了其他的转义方式,那么加到后面即可,比如:{$article.content|htmlspecialchars_decode|stripslashes}


[config]历史优惠活动内容
  • [JSAPI] config: invalid url domain 微信 JSSDK 开发
  • apache:configuration error: couldn't perform a
  • Mac 下编译安装 PHP7 时报错→configure: error: Please sp
  • [JSAPI] config: invalid url domain 微信 JSSDK 开发
  • apache:configuration error: couldn't perform a
  • Mac 下编译安装 PHP7 时报错→configure: error: Please sp
  • [JSAPI] config: invalid url domain 微信 JSSDK 开发
  • apache:configuration error: couldn't perform a
  • Mac 下编译安装 PHP7 时报错→configure: error: Please sp
  • [JSAPI] config: invalid url domain 微信 JSSDK 开发
  • apache:configuration error: couldn't perform a
  • Mac 下编译安装 PHP7 时报错→configure: error: Please sp
  • [JSAPI] config: invalid url domain 微信 JSSDK 开发
  • apache:configuration error: couldn't perform a
  • Mac 下编译安装 PHP7 时报错→configure: error: Please sp
  • [JSAPI] config: invalid url domain 微信 JSSDK 开发
  • apache:configuration error: couldn't perform a
  • Mac 下编译安装 PHP7 时报错→configure: error: Please sp
  • [JSAPI] config: invalid url domain 微信 JSSDK 开发
  • apache:configuration error: couldn't perform a
  • Mac 下编译安装 PHP7 时报错→configure: error: Please sp
  • configure.ac:3: error: Autoconf version 2.68 o
  • 解决宝塔数据库\\”Warning in ./libraries/config/FormDi
  • 解决宝塔数据库\\”Warning in ./libraries/config/FormDi
  • 杰奇后台采集提示Warning: require#.. .. configs define.
  • iis7下如何通过web.config设置404错误页面
  • ifconfig command not found找不到的解决方法
  • configure.ac→3→ error→ Autoconf version 2.68 o
  • 解决宝塔数据库\”Warning in ./libraries/config/FormDis

  • 猜你可能想看的VPS


    转载请注明原文地址:http://140.238.13.167:12355/read-157405.html

    下一篇       上一篇