【发布时间】:2011-04-21 22:51:56
【问题描述】:
在 rails 2 中,我使用 来显示由 RedCloth 生成的 HTML,但是在 Rails 3 中我该如何做呢?
<%= raw RedCloth.new(@review).to_html %>
【问题讨论】:
-
这在 Rails 3 中应该可以正常工作。你的输出是什么 - 转义的 HTML 而不是原始的?
标签: html ruby-on-rails redcloth