开发者

How to display HTML inside text area using Rails

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 %>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜