SQLite - show html from entry


I have an entry in my database that has line breaks.
I want those line breaks to actually appear as line breaks when the
entry is displayed.

So, I did something like:

<%= string_var.sub("\n","
":slight_smile: %>

It partially works. It actually replaces the < with &lt and the >
symbol with &gt.
Is there a work around this?

Thank you,

What version of Rails are you running?

Rails 3 changed the default behavior of printing raw html and the use of
“h” method.

More information can be found here:

Fernando B.