有没有一种方法可以禁止电子邮件引擎自动超链接URL? [英] Is there a way to disable email engines from automatically hyperlinking a URL?

查看:76
本文介绍了有没有一种方法可以禁止电子邮件引擎自动超链接URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的一位客户想要禁用该URL以显示为超链接URL,必须将其识别为纯文本,这是我尝试过的:

One of my clients wants to disable the URL to be shown as a hyperlinked URL, it has to be recognized as plain text, this is what I have tried:

<a href="..." style="text-decoration:none!important">ur<!comments>l</a>

我也曾尝试删除< a</a> 标记,以及删除"http://"标记.URL中的任何一个都无法在Outlook中使用.Outlook仍将其识别为超链接.

I have also tried to remove the <a></a> tag, as well as remove "http://" of the URL, none of them worked in Outlook. Outlook still recognized it as a hyperlink.

这里有人解决吗?

推荐答案

我想使用一个零宽度的不间断空格:&#65279;

There is a zero-width non-breaking space that I like to use: &#65279;

我将其放置在重要​​的位置,以使该URL不会被识别为URL,例如:http&#65279;://www&#65279; domain.&#65279; com.

I place it in strategic places so that the URL does not get recognized as a URL, like so: http&#65279;://www&#65279;domain.&#65279;com.

该策略对我来说适用于所有平台和渲染客户端.它的优点是双重的:1)防止客户端将文本自动呈现为链接,以及2)与其他不间断"的零宽度空格ascii代码(即&#8302;)不同,它包装了整个URL如果您的网址恰好需要它(而不仅仅是零宽度空格之后的部分).

This strategy has worked for me across platforms and rendering clients. Its advantages are twofold: 1) it prevents the client from auto-rendering text as a link, and 2) unlike other "non-breaking" zero-width space ascii codes (ie &#8302;), it wraps the entire URL if your URL happens to need it (instead of just the parts after the zero-width space).

尝试一下.

这篇关于有没有一种方法可以禁止电子邮件引擎自动超链接URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆