fix(route): dorohedoro xml error (#13185)
This commit is contained in:
@@ -14,7 +14,9 @@ module.exports = async (ctx) => {
|
||||
url: apiUrl,
|
||||
});
|
||||
|
||||
const $ = cheerio.load(response.data);
|
||||
const $ = cheerio.load(response.data, {
|
||||
xmlMode: true,
|
||||
});
|
||||
|
||||
let items = $('item')
|
||||
.slice(0, limit)
|
||||
|
||||
Reference in New Issue
Block a user