fix: remove normalizeWhitespace property

ref: https://github.com/cheeriojs/cheerio/pull/2688
This commit is contained in:
Tony
2022-08-24 12:09:54 +00:00
parent fdbb896804
commit b9e370f4b6
2 changed files with 1 additions and 5 deletions
+1 -4
View File
@@ -7,10 +7,7 @@ module.exports = async (ctx) => {
url: 'https://idol.sankakucomplex.com/post/atom',
});
const $ = cheerio.load(response.data, {
normalizeWhitespace: true,
xmlMode: true,
});
const $ = cheerio.load(response.data);
ctx.state.data = {
title: 'Posts | Idol Complex - Idol & Cosplay Images',
-1
View File
@@ -25,7 +25,6 @@ module.exports = async (ctx) => {
const data = response.data.replace(regex, '$1');
const $ = cheerio.load(data, {
normalizeWhitespace: true,
xmlMode: true,
});