fix(route): dorohedoro xml error (#13185)

This commit is contained in:
Tony
2023-09-02 01:43:43 +08:00
committed by GitHub
parent 24e6b08983
commit 73bb1083cd
+3 -1
View File
@@ -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)