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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Loganathan S. (Guest)
on 2015-03-05 21: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.


Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe <>
This topic is locked and can not be replied to.