然后,把书签的地址修改成下面的代码:
javascript:(function (){var str=rich_postor._editor.getHtml();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, "&");var temps = new Array();var i = 0;while (/<[^>]*>| |@\S*/.test(str)){temps[i] = /<[^>]*>| |@\S*/.exec(str);str = str.replace(temps[i], "㊣");i++;}out = "";for (var i = 0; i < str.length; i++){out += "&#" + str.charCodeAt(i) + ";";}for (var i = 0; i < temps.length; i++){var temp = temps[i] + "";out = out.replace(/㊣/, temp);}rich_postor._editor.getHtml=function (){return out;};rich_postor._submit();})();龙