mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-07 13:39:35 +08:00
fix cache type
This commit is contained in:
@@ -5,12 +5,12 @@ module.exports = async (ctx, next) => {
|
||||
|
||||
// decode HTML entities
|
||||
if (ctx.state.data) {
|
||||
ctx.state.data.title && (ctx.state.data.title = he.decode(ctx.state.data.title));
|
||||
ctx.state.data.description && (ctx.state.data.description = he.decode(ctx.state.data.description));
|
||||
ctx.state.data.title && (ctx.state.data.title = he.decode(ctx.state.data.title + ''));
|
||||
ctx.state.data.description && (ctx.state.data.description = he.decode(ctx.state.data.description + ''));
|
||||
ctx.state.data.item &&
|
||||
ctx.state.data.item.forEach((item) => {
|
||||
item.title && (item.title = he.decode(item.title));
|
||||
item.description && (item.description = he.decode(item.description));
|
||||
item.title && (item.title = he.decode(item.title + ''));
|
||||
item.description && (item.description = he.decode(item.description + ''));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user