Skip to content

Commit

Permalink
chore(deps): remove commented decodeEntities option
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Aug 16, 2024
1 parent 5144908 commit 85d98c6
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions build/extract-sections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ export async function extractSections(
): Promise<[Section[], string[]]> {
const flaws: string[] = [];
const sections: Section[] = [];
const section = cheerio
.load("<div></div>", {
// decodeEntities: false
})("div")
.eq(0);
const section = cheerio.load("<div></div>")("div").eq(0);

const body = $("body")[0] as cheerio.ParentNode;
const iterable = [...(body.childNodes as cheerio.Element[])];
Expand Down Expand Up @@ -207,11 +203,7 @@ async function addSections(
*/
if (countPotentialSpecialDivs > 1) {
const subSections: Section[] = [];
const section = cheerio
.load("<div></div>", {
// decodeEntities: false
})("div")
.eq(0);
const section = cheerio.load("<div></div>")("div").eq(0);

// Loop over each and every "root element" in the node and keep piling
// them up in a buffer, until you encounter a `div.bc-data` or `div.bc-specs` then
Expand Down

0 comments on commit 85d98c6

Please sign in to comment.