0

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 %>
Satchel
  • 16,414
  • 23
  • 106
  • 192

1 Answers1

1

Use <%= raw %>.

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

double-beep
  • 5,031
  • 17
  • 33
  • 41
Dominic
  • 1,294
  • 1
  • 15
  • 29