mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: 简阅(simpread) 占位字符去除
This commit is contained in:
@@ -45,11 +45,13 @@ module.exports = async (ctx) => {
|
||||
.find('li')
|
||||
.map((index, item) => {
|
||||
const level = $(item).find('span').attr('class');
|
||||
const text = $(item).find('span').html();
|
||||
$(item).find('span').remove();
|
||||
if (level !== undefined) {
|
||||
if (level.indexOf('empty') !== -1) {
|
||||
$(item).wrap('<ul></ul>');
|
||||
} else {
|
||||
$(item).find('span').append('<br/>');
|
||||
$(item).prepend(`<b>${text}: </b>`);
|
||||
}
|
||||
}
|
||||
return {};
|
||||
|
||||
Reference in New Issue
Block a user