Diego999 / Back-To-School

Ruby on Rails project, Bsc 6 HE-Arc 2013-2014
GNU General Public License v2.0
0 stars 1 forks source link

Multiline messages aren't displayed correctly #55

Closed maeberli closed 10 years ago

maeberli commented 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