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
provided.
Please double check the URL you have provided. Email the webmaster for more information.’

Thanks in advance,
Jim
http://www.thepeoplesfeed.com/contribute

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

http://guides.rubyonrails.org/i18n.html

HTH,
Nicholas

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