I have a flash[:error] with an html line break. When it gets displayed, it literally show <br /> instead of interpreting it as html and breaking. Heres my error:
flash[:error] = "Format of search criteria is wrong.<br />Should be [
IXLSpecClass value][year]-[Message ID] for example GP07-8"
Yup. Since strings in Rails 3 (you’re in Rails 3, right?) are escaped by default, you’d need to go into your template and instead of
flash[:error]you would need to printflash[:error].html_safein order to have it avoid automatic escaping.