Rails 3 does not render HTML as markup
Posted
by
suebphatt
on Stack Overflow
See other posts from Stack Overflow
or by suebphatt
Published on 2011-01-11T19:26:47Z
Indexed on
2011/01/11
19:53 UTC
Read the original article
Hit count: 102
Hello, Stackoverflow.
I submitted a form, to create single row in SQL database table, as a blog entry:
<p>This is a paragraph.</p>
And the result, when I query it out for display, via Rails's ActiveRecord, it rendered like this, :
<p>This is a paragraph.</p>
and here's the code, when I view source in browser:
<p>This is a paragraph.</p>
How do I solve this? Or I just have to convert the < and > by Javascript?
Thank you :)
© Stack Overflow or respective owner