diff --git a/lib/routes/nytimes/index.js b/lib/routes/nytimes/index.js
index 4306b9fa8..3e47942ab 100644
--- a/lib/routes/nytimes/index.js
+++ b/lib/routes/nytimes/index.js
@@ -82,7 +82,10 @@ module.exports = async (ctx) => {
const result = utils.ProcessFeed(response, hasEnVersion);
- single.description = result.description;
+ const matching = '
';
+ const formatted = '
' + matching;
+
+ single.description = result.description.split(matching).join(formatted);
if (hasEnVersion) {
single.title = result.title;
diff --git a/lib/routes/nytimes/morning_post.js b/lib/routes/nytimes/morning_post.js
index b7430c697..4c67c27c2 100644
--- a/lib/routes/nytimes/morning_post.js
+++ b/lib/routes/nytimes/morning_post.js
@@ -32,13 +32,21 @@ module.exports = async (ctx) => {
});
item.pubDate = result.pubDate;
- item.description = result.description;
+
+ // Match 感谢|謝.*?cn.letters@nytimes.com。
+ const ending = /感(谢|謝);.*?cn\.letters@nytimes\.com。/g;
+
+ const matching = '
';
+ const formatted = '
' + matching;
+
+ item.description = result.description.replace(ending, '').split(matching).join(formatted);
+
return Promise.resolve(item);
})
);
ctx.state.data = {
- title: '纽约时报 每日简报',
+ title: '纽约时报中文网|每日简报',
link: url,
item: items,
};
diff --git a/lib/routes/solidot/_article.js b/lib/routes/solidot/_article.js
index 5b1088a6f..1dd9943d4 100644
--- a/lib/routes/solidot/_article.js
+++ b/lib/routes/solidot/_article.js
@@ -37,6 +37,7 @@ module.exports = async function get_article(url) {
link: url,
description: $('div.p_mainnew')
.html()
+ .replace(/(href.*?)
(.*?)<\/u>/g, `$1$2`)
.replace(/href="\//g, 'href="' + domain + '/'),
category: $('div.icon_float > a').attr('title'),
};