Double-escaped HTML entities in structured data
This error appears when a page's structured data (JSON-LD) contains HTML entities escaped twice, like & instead of &. Here's what it means and how to fix it.
What this error means
Why it matters to fix it
You lose eligibility for rich results
If the affected field is one Google needs to show a special search feature (stars, FAQ, events...), it arrives corrupted and Google may discard it.
The data doesn't say what you think it says
A name, description, or price can arrive with a literal & in the middle instead of the actual character.
It's easy for it to go unnoticed for months
It doesn't break anything visually, so it can build up across the whole site without anyone noticing, especially if it comes from a caching plugin enabled site-wide.
How to fix it step by step
Fixing this isn't about touching the JSON-LD you already wrote — it's about finding what's re-escaping it along the way.
Find out what touches the HTML after it's generated
The usual suspects are caching plugins, HTML minifiers, and optimizers that compress the page's code.
Where to apply it: Your CMS or server's caching/minification settings.
Exclude <script type="application/ld+json"> blocks from minification
Most of these plugins let you exclude specific tags from minification.
Where to apply it: Advanced options of the caching/minification plugin.
Use standard JSON escapes, not HTML entities
If you generate the JSON-LD yourself, use \", \n, and & instead of HTML entities.
Where to apply it: The code or template that builds the JSON-LD.
Validate the result
Check that the affected field no longer shows the double-escaped literal text.
Where to apply it: Google's Rich Results Test.
If you want to understand it even better
To help you better understand this type of error and why it happens, we include additional materials that expand the explanations, guide with examples, or show alternative methods.
Google's Rich Results Test
Check how Google interprets a URL's structured data, including fields affected by double escaping.
View resourceDoes your site have this problem?
Audit your website for free and discover if this and other SEO errors are affecting your ranking.