set tabstop=4 set shiftwidth=4 set nu set ai syntax on filetype plugin indent on
I tried this, content.gsub(\"\\r\\n\",\"\") bu
content.gsub(\"\\r\\n\",\"\")
You need to use html_safe if you want to render embedded HTML:
html_safe
<%= @the_string.html_safe %>
If it might be nil, raw(@the_string) won't throw an exception. I'm a bit ambivalent about raw; I almost never try to display a string that might be nil.
raw(@the_string)
raw
nil