[RAILS4] How to escape HTML characters in email in rails mailer

11 views
Skip to first unread message

Loganathan Sellapa

unread,
Mar 5, 2015, 2:51:26 PM3/5/15
to rubyonra...@googlegroups.com

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

Reply all
Reply to author
Forward
0 new messages