diff --git a/lib/routes/huxiu/utils.js b/lib/routes/huxiu/utils.js index e15b69d87..bc871bc0d 100644 --- a/lib/routes/huxiu/utils.js +++ b/lib/routes/huxiu/utils.js @@ -25,6 +25,13 @@ const ProcessFeed = async (list, cache) => { .find('.text-big-title') .each((i, e) => (e.tagName = 'h3')); + $('p').each(function () { + if ($(this).find('img').length === 0 && $(this).text().match(/^\s*$/)) { + $(this).remove(); + } + }); + $('img.dialog_add_wxxy_qrcode_icon').remove(); + return { title: $('.article__title').text().trim(), description: $('.article__top-img-video') + $('.article__content').html(),