SQLite - show html from entry

Hi,

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","<br>":slight_smile: %>

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

Thank you,
Eric

What version of Rails are you running?

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

More information can be found here: http://asciicasts.com/episodes/204-xss-protection-in-rails-3