您的位置:时间博客>前端>解决Ueditor编辑文章丢失html标签问题

解决Ueditor编辑文章丢失html标签问题

使用ueditor编辑器添加了文章,再次编辑发现编辑器内显示的文章内容不对。

添加内容是这样的:

8950eb923182ff4d457308e8f9ee2334.png


编辑显示出来的却是这样的

c073316a3be35da5cc34d5e701a8bf04.png


问题解决,把Ueditor加载方式:

<textarea name="content" id="content" style="width:100%;height:280px;">{$list[0]->content}</textarea>

更换成

<script name="content" id="content" type="text/plain"  style="width:100%;height:280px;">{$list[0]->content}</script>

就正常了....

估计是<textarea></textarea>标签内的html被浏览器解析或者js过滤了吧

转载请注明本文标题和链接:《 解决Ueditor编辑文章丢失html标签问题
分享到:

相关推荐

网友评论 0

未登陆 表情
Ctrl+Enter快速提交