开发者

How to display HTML inside text area using Rails

开发者 https://www.devze.com 2022-12-11 07:49 出处:网络
I know th开发者_Python百科at questions about this topic exist, but i would like to know if anyone knows a solution for 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

精彩评论

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

关注公众号