This is more of a ruby question, but I have a textarea in a form, and
for later presentation I need to convert the line endings to
The value from the form is, for example “line of text\r\nmore text”.
I tried gsub(’\r\n’, “
”), but it doesn’t find the \r\n. How do I
specify those characters?