为什么Thunderbird会添加“<a class="moz-txt-link-rfc2396E" href="http://schema.org">&#34; to an html E-Mail?

时间:2015-05-10 19:16:43

标签: html email microdata thunderbird json-ld

I have been searching for an answer to my question on google and on stackoverflow. Haven't found anything..

I try to send the following JSON-LDand Microdata schemas as an E-Mail to my Gmail-account:

<script type="application/ld+json">
{
	"@context": "http://schema.org",
	"@type": "Person",
	"name": "Max Mustermann",
	"affiliation": "Musterfirma",
	"telephone": "01234/56789",
	"url": "http://example.com/"
}
</script>
<div itemscope itemtype="http://schema.org/Person">
	<span itemprop="name">Max Mustermann</span>
	<span itemprop="affiliation">Musterfirma</span>
	<span itemprop="telephone">01234/56789</span>
	<a href="http://example.com/ itemprop="url">Website</a>
</div>

And when I am looking at the received E-mail it's always like this:

    <script type="application/ld+json">
{
	"@context": <a class="moz-txt-link-rfc2396E" href="http://schema.org">"http://schema.org"</a>,
	"@type": "Person",
	"name": "Max Mustermann",
	"affiliation": "Musterfirma",
	"telephone": "01234/56789",
	"url": <a class="moz-txt-link-rfc2396E" href="http://example.com/">"http://example.com/"</a>
}
</script>
    <div itemscope="" itemtype="http://schema.org/Person"> <span
        itemprop="name">Max Mustermann</span> <span
        itemprop="affiliation">Musterfirma</span> <span
        itemprop="telephone">01234/56789</span> <a
        href="http://example.com/%20itemprop=" url"="">Website</a>
    </div>

I add the html to a new E-Mail through the insert/HTML function in Thunderbird. How can i change this behaviour of Thunderbird. Or can you recommend me another programm to send html E-Mails? I need the mails to be sent and received unchanged.. Thanks in advance!! :D

1 个答案:

答案 0 :(得分:0)

在第一种情况下(JSON-LD):Thunderbird似乎会自动检测URL并将其超链接。 That’s a bug

在第二种情况下(Microdata):Thunderbird对href属性中的URL进行百分比编码。为什么?可能是因为你错过了一个引号:而不是

<a href="http://example.com/ itemprop="url">Website</a>

应该是

<a href="http://example.com/" itemprop="url">Website</a>