Hi all,
Trying to implement google's breadcrumb script combined with server side rendering and when I bind the value, all the " characters become "
and google cannot read it.
<script type="application/ld+json">
<%=_('breadcrumb',locals)%>
</script>
Result:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [{
"@type": "ListItem",
"position": 1,
"name": "Books",
"item": "https://example.com/books"
},{
"@type": "ListItem",
"position": 2,
"name": "Science Fiction",
"item": "https://example.com/books/sciencefiction"
}]
}
</script>
Also tried with inner text, the formatting was good but google didn't like it.
Any idea?
Gabor