ueditor 富文本保存内容,页面展示时显示内容含有标签
解决办法:
{$company.info|htmlspecialchars_decode}
Ueditor 富文本保存后,富文本编辑器内,显示内容是标签,
解决办法:
<script type="text/plain" id="myEditor" style="width:100%;height:240px;">
{$item.info|html_entity_decode}
</script>
本文介绍了解决UEditor富文本编辑器保存内容后,页面展示时出现的内容含有未解析标签的问题。通过使用htmlspecialchars_decode或html_entity_decode函数,可以正确显示富文本内容。
解决办法:
{$company.info|htmlspecialchars_decode}
解决办法:
<script type="text/plain" id="myEditor" style="width:100%;height:240px;">
{$item.info|html_entity_decode}
</script>
764
771

被折叠的 条评论
为什么被折叠?