I have a line like the following in my Rails view/template (generating
Because some of the error_descs have newlines, the browser is
receiving page code that looks like this:
y = escape(‘Information about the error.
Another line in the description.
A third line in the description string.’);
“unterminated string literal”. What is the best practices way to
handle this, since apparently Rails’s h() isn’t removing newlines?