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\",\"\")
With Ruby On Rails 4.0.1 comes the simple_format from TextHelper. It will handle more tags than the OP requested, but will filter malicious tags from the content (sanitize).
simple_format
simple_format(t.content)
Reference : http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html