rss: fix weibo format

This commit is contained in:
DIYgod 2018-08-21 11:12:40 +08:00
parent 7d70671cc2
commit 32aa8e56ca
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
1 changed files with 3 additions and 0 deletions

View File

@ -6,8 +6,11 @@ const weiboUtils = {
temp = temp.replace(/<span class=["|']url-icon["|']>.*?网页链接<\/span>/g, '网页链接');
// 表情图标转换为文字
temp = temp.replace(/<span class="url-icon"><img.*?alt="(.*?)".*?><\/span>/g, '$1');
// 去掉乱七八糟的图标
temp = temp.replace(/<span class=["|']url-icon["|']>(.*?)<\/span>/g, '');
// 去掉全文
temp = temp.replace(/全文<br>/g, '<br>');
temp = temp.replace(/<a href="(.*?)">全文<\/a>/g, '');
// 处理外部链接
temp = temp.replace(/https:\/\/weibo\.cn\/sinaurl\/.*?&u=(http.*?")/g, function(match, p1) {