如何禁用电子邮件链接? [英] How to disable an email link?
本文介绍了如何禁用电子邮件链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Ruby on Rails 3,并且想禁用 HTML 电子邮件中的电子邮件地址链接.
I am using Ruby on Rails 3 and I would like to disable an email address link in a HTML email.
例如,如果我在电子邮件中发送了一些原始HTML,例如
For example, if in an email I send some raw HTML like
Hi, you email is: <br/>
test@email.com
Gmail自动检测到这是一个电子邮件地址,并将其更改为
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>
我想要这个输出
# Text without the 'mailto:' link
Hi, you email is:
test@email.com
我该怎么做?
推荐答案
您可以尝试
Hi, you email is:<br />
test@email.com
这篇关于如何禁用电子邮件链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文