mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: remove normalizeWhitespace property
ref: https://github.com/cheeriojs/cheerio/pull/2688
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -25,7 +25,6 @@ module.exports = async (ctx) => {
|
||||
const data = response.data.replace(regex, '$1');
|
||||
|
||||
const $ = cheerio.load(data, {
|
||||
normalizeWhitespace: true,
|
||||
xmlMode: true,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user