【问题标题】:insert html summernote shows up as text插入 html summernote 显示为文本
【发布时间】:2017-09-14 08:01:41
【问题描述】:

我正在尝试将 html 代码插入 Summernote 字段。我正在使用 grails 2.3.11,我正在从数据库发送纯 html

$("#summernote").summernote("code", "${text}");

预期输出为

但我得到的是

【问题讨论】:

    标签: grails summernote


    【解决方案1】:

    问题出在 grails 方面。我不得不使用${raw(text)}

    【讨论】:

      猜你喜欢
      • 2018-10-02
      • 1970-01-01
      • 2017-04-06
      • 2016-04-01
      • 2019-07-10
      • 2018-04-29
      • 2017-07-21
      • 2022-01-05
      • 2020-08-10
      相关资源
      最近更新 更多