Skip to content

Commit

Permalink
Merge pull request #11 from synopss/fix/self-closing-tags
Browse files Browse the repository at this point in the history
fix: self-closing tags being replaced with dedicated closing tags after migration
  • Loading branch information
synopss authored Apr 12, 2024
2 parents a7c76e4 + 33d8dd7 commit 0685ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/cheerio.ts
Original file line number Diff line number Diff line change
@@ -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);
}

0 comments on commit 0685ede

Please sign in to comment.