Email Obfuscation Breaking JSON-LD – Output Buffer ?
-
Hello Support,
Recently I had an issue with email addresses that were not being protected in author boxes, which was eventually resolved by using the output buffer. This was the related thread:
Contact Email In Author Boxes Unprotected | www.remarpro.com
Since doing this though, I have encountered another problem with email protection breaking JSON-LD.When using the Schema Markup validator (links to the test of the page with the broken JSON-LD) I can see the error –
Missing ',' or '}' in object declaration.
At first this didn’t make sense as the structure appeared correct.I then extracted the JSON code and tested it using the JSON Online Validator and Formatter – JSON Lint and the resulting error seems to point to the obfuscated email data within the JSON code block. I then removed the email data from the code, and it validates fine. Looking at the email data I believe the use of inverted commas within the email data like
class="apbct-ee-blur-group"
is invalidating the markup.Can you advise a workaround for this please?
- You must be logged in to reply to this topic.