Closed jrood closed 1 year ago
I believe this is by design: https://www.w3.org/TR/json-ld11/#restrictions-for-contents-of-json-ld-script-elements
Google's parser should be able to unescape those; JSON-LD inside of a <script>
tag is by default expected to have some characters escaped.
Google's parser should be able to unescape those
Ah, looks like it does! In that case, I'll close this out.
According to the FAQ schema doc, the
text
for anacceptedAnswer
should be able to include link elements. However, the replacer here escapes angle brackets and double quotes, which should not be escaped if an anchor tag is intended.