From 33d8dd7ce0642c5d5f1049274be9a5787cec6409 Mon Sep 17 00:00:00 2001 From: synopss Date: Fri, 12 Apr 2024 20:56:08 +0200 Subject: [PATCH] fix: self-closing tags being replaced with dedicated closing tags after migration --- src/util/cheerio.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/cheerio.ts b/src/util/cheerio.ts index 2995f69..33faf15 100644 --- a/src/util/cheerio.ts +++ b/src/util/cheerio.ts @@ -1,5 +1,5 @@ import { CheerioAPI, load } from 'cheerio'; export function loadHtml(html: string): CheerioAPI { - return load(html, { xmlMode: true, decodeEntities: false }, false); + return load(html, { xml: { decodeEntities: false, lowerCaseAttributeNames: false } }, false); }