如何修复使用Javascript发送的带引号的可打印电子邮件?

时间:2018-06-12 09:02:19

标签: javascript email calendar ascii

我试图通过在电子邮件来源中添加以下javascript代码来接收电子邮件时添加Google日历活动:

<script type="application/ld+json">
    {
    "@context": "http://schema.org",
    "@type": "EventReservation",
    "reservationNumber": "1",
    "reservationStatus": "http://schema.org/Confirmed",
    "underName": {
        "@type": "Person",
        "name": "Niels Schutte"
    },
    "reservationFor": {
        "@type": "Event",
        "name": "Gras maaien",
        "startDate": "2018-06-12T19:30:00-08:00",
        "location": {
        "@type": "Place",
        "name": "Graslaan 13",
        "address": {
            "@type": "PostalAddress",
            "streetAddress": "Generaal 13",
            "addressLocality": "Ter Oppel",
            "addressRegion": "NL",
            "postalCode": "9581KK",
            "addressCountry": "NL"
        }
        }
    }
    }
</script>

此代码未执行,因为电子邮件的源代码中填充了“&#39; 3D&#39;在每一个&#39; =&#39;字符。

<script type=3D"application/ld+json">

提前致谢!

0 个答案:

没有答案