Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 rails 2 中,我使用 <%=h %> 来显示由 RedCloth 生成的 HTML,但在 Rails 3 中我该如何做到这一点?
<%= raw RedCloth.new(@review).to_html %>
使用<%= raw %>.
<%= raw %>
参考:raw vs. html_safe vs. h to unescape html