fix(route): oschina remove ads (#13655)

This commit is contained in:
Tony
2023-10-30 22:05:34 +08:00
committed by GitHub
parent 3bd51e37be
commit 37d6cb08a7
+1
View File
@@ -66,6 +66,7 @@ module.exports = async (ctx) => {
},
});
const content = cheerio.load(detail.data);
content('.ad-wrap').remove();
item.description = content('.article-detail').html();
item.author = content('.article-box__meta .item').first().text();