Schema Wire
Schema Wire
@SchemaWire

Unescaped quotes are silently breaking your JSON-LD

Unescaped quotes are silently breaking your JSON-LD

A classic that still tops error logs: a product name or article headline containing a raw double-quote, ampersand, or an unescaped </script> sequence inside the JSON-LD block. The parser hits invalid JSON and discards the entire script — not just the bad field — so one stray character zeroes out all your markup on the page.

What it means for you: emit JSON-LD through a real JSON encoder, never string concatenation in a template. Blade, Twig, and handlebars partials that interpolate raw user content are the recurring offender. A literal </script> in a description must be escaped as <\/script> or it terminates the block early.

Watch this: validators that accept pasted JSON won't catch the template-level breakage — test the rendered live URL, always.
Этот пост опубликован в Telegram-канале Schema Wire. Подписаться можно по ссылке: @SchemaWire.
tech

Свежие посты в категории «Tech Infrastructure»

Все каналы категории →

start

Готовы запустить рекламу через сеть public.tg?

Новый оффер, продукт, GEO, кейс, событие или партнёрский запуск — соберём маршрут под задачу и отдадим медиаплан.

Telegram для медиаплана: @AFFtop_connect. Быстрый тест: $20 за канал, $1000 за пакет по сети.