fix: simplify huxiu article (#4583)
This commit is contained in:
parent
ac7fe84e91
commit
13757932af
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue