From f227f0b8da10e41d82729344fea4648d79d6707c Mon Sep 17 00:00:00 2001 From: DIYgod Date: Sun, 19 Aug 2018 17:33:53 +0800 Subject: [PATCH] rss: zhihu daily format --- routes/zhihu/daily.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/zhihu/daily.js b/routes/zhihu/daily.js index 6e385da74..f0c1fcdd6 100644 --- a/routes/zhihu/daily.js +++ b/routes/zhihu/daily.js @@ -38,8 +38,8 @@ module.exports = async (ctx) => { Referer: url, }, }); - item.description = storyDetail.data.body; - ctx.cache.set(key, storyDetail.data.body, 24 * 60 * 60); + item.description = storyDetail.data.body.replace(/
([\s\S]*?)<\/div>/g, '$1'); + ctx.cache.set(key, item.description, 24 * 60 * 60); } resultItem.push(item);