使用ueditor编辑器添加了文章,再次编辑发现编辑器内显示的文章内容不对。
添加内容是这样的:
编辑显示出来的却是这样的
问题解决,把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