Skip to content

Commit 21f0de5

Browse files
committed
use xmlMode when loading cheerio
1 parent d0efefd commit 21f0de5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/graphql/utils/prerender-objects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = async function prerenderObjects (schemaJsonPerVersion, version)
2525
for (const object of schemaJsonPerVersion.objects) {
2626
context.item = object
2727
const objectHtml = await liquid.parseAndRender(objectIncludeFile, context)
28-
const $ = cheerio.load(objectHtml)
28+
const $ = cheerio.load(objectHtml, { xmlMode: true })
2929
rewriteLocalLinks($, version, currentLanguage)
3030
const htmlWithVersionedLinks = $.html()
3131
objectsArray.push(htmlWithVersionedLinks)

0 commit comments

Comments
 (0)