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 didn
"password<>"
"password<br><d>test"
raw should work….i use it in my system….
--
You received this message because you are subscribed to the Google Groups "BANGALORE RUG-Ruby Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bangalorerug...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I have tried raw/h/html_safe already none of them are working mailer views :(
Locale File
email_root_password: |
Your new cell has been created!<br><br>You can access it using the following credentials:<br> IP Address: %{ip_address}<br> Username: root
<br> Password: %{password}<br><br><br>You can change your password or add your SSH key(s) be editing the cell details here: <a href='%{cell_access_link}'>%{cell_access_link}</a>
Mailer View
!!!
%html
%body
%p
%meta{content: "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
%div
= t("email_contents.email_root_password", ip_address: @vm["ip_addresses"][0]["ip_address"]["address"], password: @vm['initial_root_password'], cell_access_link: cell_url(@vm['id'])).html_safe
--
Your new cell has been created!
You can access it using the following credentials:
IP Address: 64.22.114.187
Username: root
Password:
You can change your password or add your SSH key(s) be editing the cell details here: http://localhost.com/cells/649
t("email_contents.email_root_password", ip_address: @vm["ip_addresses"][0]["ip_address"]["address"], password: @vm['initial_root_password'], cell_access_link: cell_url(@vm['id'])).html_safe
--