终于来了,【第二期】 彭涛Python 爬虫特训营! ! 爬虫课福利,走过路过,务必不要错过!
(function () { var content = "<a target=\"_blank\" href=\"https://mp.weixin.qq.com/s?__biz=MzA5MTkxNTMzNg==&mid=2650293642&idx=1&sn=0a80df80adddf6c51dc0532e2fad8675&scene=21#wechat_redirect\">终于来了,【第二期】 彭涛Python 爬虫特训营! !</a>\n爬虫课福利,走过路过,务必不要错过!"; // 只保留a标签 var jsTextContent = document.getElementById("js_text_content"); var jsTextContentFake = document.getElementById("js_text_content_fake"); // console.log(content); content = content.replace(/<(\/?)(?!((a(\s|>))|(\/a))).*?>/g, (s) => { return s.html(true); }); jsTextContent.innerHTML = window.__emojiFormat(content); if (parseFloat(window.getComputedStyle(jsTextContent).height) > parseFloat(window.getComputedStyle(jsTextContentFake).height)) { jsTextContent.parentNode.className += ' share_media_text_overflow'; } })();