Forum: Ruby on Rails [RAILS4] How to escape HTML characters in email in rails mailer

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Cf5880598f9ed484de58d5f388d5c1e2?d=identicon&s=25 Loganathan S. (loganathan_s)
on 2015-03-05 20:52
(Received via mailing list)
Hi All,

I want to escape some of my email contents which are all having special
characters such as below, what is best way to do it, html_safe, h, & raw
didnt escape the HTML characters in mailer views.

"password<>""password<br><d>test"

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe <http://vizualize.me/loganathan>
This topic is locked and can not be replied to.