/** * 2025-5-21 14:12:21 * version v1.0.0 * svn /finance/frontend/common/apps/weiboComment */ !function(exports,undefined){var C={U:"undefined"},doc=document,byId=function(e){return"string"==typeof e?doc.getElementById(e):e},byTag=function(e){return"string"==typeof e?doc.getElementsByTagName(e):e},byAttr=function(e,t,n){for(var a,i=[],o=(e="string"==typeof e?byId(e):e).childNodes,s=Array.prototype.slice.call(arguments),r=2===s.length,c=0,l=o.length;c/g,">").replace(/ /g," ").replace(/\'/g,"'").replace(/\"/g,""").replace(/\n/g,"
")},decodeHTML=function(e){return"string"!=typeof e?e:0===e.length?"":e.replace(/>/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/ /g," ").replace(/'/g,"'").replace(/"/g,'"').replace(/
/g,"\n")},encodeDoubleByte=function(e){return"string"!=typeof e?e:encodeURIComponent(e)},byteLength=function(e){var t;return typeof e==C.U?0:(t=e.match(/[^\x00-\x80]/g),e.length+(t?t.length:0))},strLeft=function(e,t){var n=e.slice(0,t),a=n.replace(/[^\x00-\xff]/g,"**").length,i=e.length,o=n.length;if(a>1)-1)+"...":e.slice(0,t>>1);default:var s=t-a,r=e.slice(s,t);return(i=r.replace(/[\x00-\xff]/g,"").length)?e.slice(0,s)+arguments.callee(r,i):e.slice(0,s)}},indexOf=function(e,t){if(t.indexOf)return t.indexOf(e);for(var n=0,a=t.length;n