I wanted to add some JSON-LD to emails that our application is sending out. Basically it adds links directly in the subject line and it's how github recently added this feature a couple weeks back:
If you actually look at the code in the email for a github pull request, you will see that it drops a script tag like this:
However when I try to add a tag like this as part of my HTML body, it gets replaced with something that looks like this:
<invalidTag type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Notification From Slatwall","action":{"@type":"ViewAction","url":"http://www.gregmoser.com/","name":"Reset Password"}}</script>
You can see how 'script' got replaced with 'invalidTag'. Now I don't know if that is gmail stripping it out, and I need to pass it as a different mailpart, or if this is Railo stripping it out.
Any ideas would be much appreciated.
Thanks,
Greg