CssToInlineStyles
CssToInlineStyles copied to clipboard
<script> tag styling
We have JSON-LD script tags in our emails and they get a style
attribute added to them, which doesn't make sense.
<script type="application/ld+json" style="font-family: Avenir, Helvetica, sans-serif; box-sizing: border-box;">
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ConfirmAction",
"name": "Approve Expense",
"handler": {
"@type": "HttpActionHandler",
"url": "https://myexpenses.com/approve?expenseId=abc123"
}
},
"description": "Approval request for John\u2019s $10.13 expense for office supplies"
}
</script>
</body>
</html>
Could it be that you have a * {}
-statement in your css file? Probably a reset-file.
Also, why using ld+json in emails? I don't think there is a mailclient that supports it.
Gmail does : https://developers.google.com/gmail/markup/