今天看啥  ›  专栏  ›  掘金Liszt

警惕新年新型诈骗

掘金Liszt  · 公众号  ·  · 2024-02-17 21:44

文章预览

展开 var __INLINE_SCRIPT__ = (function () { 'use strict'; var __setDesc = function __setDesc(desc, isNoEncode, itemShowType) { function getAttr(s, a) { var m = s.match(new RegExp(a + '\\s*=\\s*["\']?([^"\'\\s>]+)["\']?')); return m && m[1]; } function filterContentWithLinkNWeapp(str) { str = str.split(/(]*>)((?:.|\n)*?)(<\/a>)/); var valid; for (var i = 0; i < str.length; i++) { if (i % 4 === 1) { valid = false; var href = getAttr(str[i], 'href'); if (/^https?:\/\/mp\.weixin\.qq\.com/.test(href)) { valid = true; } var r = '