0

我正在使用 Trix gem 在我的 RoR 应用程序中编辑文本,在我的表单中

<%= f.trix_editor :nom, class: "form-control" %></br>

在我的视图中,我使用“nom.html_safe”来显示文本,但在我的 Rails 控制台中,在我的数据库中,我的数据是用标签保存的。

喜欢 :

 nom: "<div>R<em>Y</em><strong>U</strong></div>"

我该如何解决这个问题

4

0 回答 0