HTML in error messages

Hey All,

Rails escapes HTML in error message. Does anyone know a way to print an
error message without it being escaped? Consider:

errors.add_to_base ‘Sorry, we were unable to parse the feed you
Please double check the URL you have provided. Email the webmaster for more information.’

Thanks in advance,

Off the top of my head a solution to this is using a translation file,
it doesn’t get escaped AFAIK:


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs