I know th开发者_Python百科at questions about this topic exist, but i would like to know if anyone knows a solution for rails :)
I'm using a text_area_tag helper, and the contents that i want to display contain HTML tags.. any idea?
There's an "escape" option in the text_area_tag
method.
By default it's set to true. If you don't wish to escape the content, you can define it to false.
<%= text_area_tag :tag_name, 'The content', :escape => false %>
精彩评论