Този сайт ще има ограничена функционалност, докато се извършва тече неговата поддръжка. Ако дадена статия не може реши проблема ви и искате да зададете въпрос, нашата общност е готова да ви помогне на @firefox в Twitter и /r/firefox в Reddit.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

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

  • 1 отговор
  • 1 има този проблем
  • 2 изгледи
  • Последен отговор от sylvain.leroux

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