user502052 user502052 - 1 month ago 11
HTML Question

How to disable an email link?

I am using Ruby on Rails 3 and I would like to disable an email address link in a HTML email.

For example, if in an email I send some raw HTML like

Hi, you email is: <br/>
test@email.com


Gmail autodetects that this is an email address and changes it to

Hi, you email is: <br/>
<a target="_blank" href="mailto:test@email.com">test@email.com</a>


I would like to have this output

# Text without the 'mailto:' link
Hi, you email is:
test@email.com


How can I do that?

Answer

You can try

Hi, you email is:<br />
test&#64email&#46com