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: 100

Filed under:
|
|

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:

&lt;p&gt;This is a paragraph.&lt;/p&gt;

How do I solve this? Or I just have to convert the < and > by Javascript?

Thank you :)

© Stack Overflow or respective owner

Related posts about html

Related posts about activerecord