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 <a href="mailto: someone-HY+I8hvefwtBDgjK7y7TUQ@public.gmane.org">webmaster</a> for more information.'' Thanks in advance, Jim http://www.thepeoplesfeed.com/contribute --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 On Aug 23, 4:22 pm, James Englert <englert.ja...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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 <a href="mailto: > some...-HY+I8hvefwtBDgjK7y7TUQ@public.gmane.org">webmaster</a> for more information.'' > > Thanks in advance, > Jimhttp://www.thepeoplesfeed.com/contribute