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\",\"\")
An alternative to convert every new lines to html tags would be to use css to display the content as it was given :
.wrapped-text { white-space: pre-wrap; }
This will wrap the content on a new line, without altering its current form.