How do I render RedCloth html in a view in Rails3?

1k Views Asked by At

In rails 2, I use <%=h %> to display HTML-generated by RedCloth, but how do I do that in Rails 3?

<%= raw RedCloth.new(@review).to_html %>
1

There are 1 best solutions below

1
On BEST ANSWER

Use <%= raw %>.

Reference: raw vs. html_safe vs. h to unescape html