|
发表于 2013-9-18 20:59:31
|
显示全部楼层
javascript:(function(){var str=rich_postor._editor.getHtml();if(str==""){alert('\u8bf7\u5728\u56de\u8d34\u6846\u91cc\u8f93\u5165\u5185\u5bb9,\u4e0d\u80fd\u5e26\u6709\u56de\u8f66\u7b26\u548c\u7a7a\u683c')}var out="";for(var i=0;i<str.length;i++){if(str.charCodeAt(i)<128){out+=str.charAt(i)}else{var uc=str.charCodeAt(i);if((uc&0xFC00)==0xD800)uc=(uc-0xD800)*1024+str.charCodeAt(i+1)-0xDC00+0x10000,i++;{out+="�"+uc+";"}}}str=out.replace(/<\/?a[^>]*>/gi,"").replace(/&/gi,"&");rich_postor._editor.getHtml=function(){return"<a href=\"http://"+out+"\" target=\"_blank\">"+out+"</a>"};rich_postor._submit()})();
还是不会用啊!!!! |
|