We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48bf38f commit ff1f714Copy full SHA for ff1f714
src/parsers/jsonld-parser.js
@@ -7,7 +7,7 @@ export default function (html, config = {}) {
7
8
$html('script[type="application/ld+json"]').each((index, item) => {
9
try {
10
- let parsedJSON = JSON.parse($(item).text())
+ let parsedJSON = JSON.parse($(item).text().trim().replace(/;$/, ''))
11
if (!Array.isArray(parsedJSON)) {
12
parsedJSON = [parsedJSON]
13
}
0 commit comments