From 73bb1083cdea67217caee4610991c9edc6782b16 Mon Sep 17 00:00:00 2001 From: Tony Date: Sat, 2 Sep 2023 01:43:43 +0800 Subject: [PATCH] fix(route): dorohedoro xml error (#13185) --- lib/v2/dorohedoro/news.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/v2/dorohedoro/news.js b/lib/v2/dorohedoro/news.js index e285c75e5e..7e9f3ffd55 100644 --- a/lib/v2/dorohedoro/news.js +++ b/lib/v2/dorohedoro/news.js @@ -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)