rss: fix weibo format
This commit is contained in:
parent
7d70671cc2
commit
32aa8e56ca
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue