Closed maeberli closed 10 years ago
the solution is to force the standard html escape the message and replace after that the newline with tags. Finally the string has to be marked as html_safe to prevent further escaping.
example: h("your text goes here").gsub(/\n/, '').html_safe
the solution is to force the standard html escape the message and replace after that the newline with
tags. Finally the string has to be marked as html_safe to prevent further escaping.
example: h("your text goes here").gsub(/\n/, '
').html_safe