3

I know that 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?

1 Answer 1

6

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 %>
Sign up to request clarification or add additional context in comments.

1 Comment

Mm.. I was actually using that option but it did not solve my problem..... :( I'm starting to think in embedding the html inside an iframe or something like that....

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.