为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

URLs in HTML signature appear twice when the message is viewed as text

more options

In Thunderbird, I've created an HTML signature using <a> elements around URLs:

<a href="https://yesik.it">http://yesik.it</a>

When I send a message using this signature, it is displayed as expected if the recipient is viewing the message as HTML. But if it views the TEXT version of the message, the URL appear twice:

http://yesik.it <https://yesik.it>

I'm pretty sure I once used a "-moz-XXX" class with the <a> element to avoid that behavior. But I can't find the reference to that anywhere. Or is there some other solution?

In Thunderbird, I've created an HTML signature using <a> elements around URLs: <a href="https://yesik.it">http://yesik.it</a> When I send a message using this signature, it is displayed as expected if the recipient is viewing the message as HTML. But if it views the TEXT version of the message, the URL appear twice: http://yesik.it <https://yesik.it> I'm pretty sure I once used a "-moz-XXX" class with the <a> element to avoid that behavior. But I can't find the reference to that anywhere. Or is there some other solution?

由sylvain.leroux于修改

被采纳的解决方案

I've found my issue. The HTML to TXT converter didn't catch the link and the link text to be the same thing ... because I didn't use the same protocol (it's a typo, a missing "s" replaced "https" by "http")

Concerning the second part of my question, Thunderbirds supports indeed a couple of magic class used for the TXT<-->HTML conversion of links:

See https://dxr.mozilla.org/mozilla-central/source/netwerk/streamconv/converters/mozTXTToHTMLConv.cpp#449

定位到答案原位置 👍 0

所有回复 (1)

more options

选择的解决方案

I've found my issue. The HTML to TXT converter didn't catch the link and the link text to be the same thing ... because I didn't use the same protocol (it's a typo, a missing "s" replaced "https" by "http")

Concerning the second part of my question, Thunderbirds supports indeed a couple of magic class used for the TXT<-->HTML conversion of links:

See https://dxr.mozilla.org/mozilla-central/source/netwerk/streamconv/converters/mozTXTToHTMLConv.cpp#449