Search code examples
ruby-on-railsemailquotation-markshtml-escape-characters

Rails: Is it not possible/necessary to html_escape all email text (in the view)?


can anyone tell me if it is normal and OK for Rails to turn a normal quotation mark (") into & q u o t ; (and not keep the normal quotation mark) when it is html_escape-d in an email view?

I.e.:

h(whatever_text_that_contains_normal_quotation_marks) in an email view "signup_mail.erb".

Because that would mean that email content could not be completely escaped, right?

Thanks for any hints!

Tom


Solution

  • Well, since Rails 3 does h() all by itself, the question is no longer valid.