刚才那是方法一,现在是方法二 复制下面的这段代码就行了。javascript:functionisT(c){vart='龙',l=0,h=t.length-1,m;while(l<=h){m=Math.floor((l+h)/2);if(t[m]>c)h=m-1;elseif(t[m]<c)l=m+1;elsereturntrue;}returnfalse};functionA2W(s){varr="",cd,nt;for(vari=0;i<s.length;i++){if(s[i]=='`'){i++;while(s[i]!='`'&&i<s.length){r+=s[i];i++;}}else{cd=s.charCodeAt(i),nt=s.charCodeAt(i+1);if(0xD800<=cd&&cd<=0xDBFF&&0xDC00<=nt&&nt<=0xDFFF){r+='&\011#'+((cd-0xD800)*0x400+nt-0xDC00+0x10000)+';';++i;}elseif(isT(s[i]))r+='&\011#'+cd+';';elser+=s[i]}};returnr};test_editor.getContentUbb=function(){returnA2W(UE.utils.html2ubb(test_editor.getContent()))};test_poster.getTitle=function(){return(test_poster.$title)?A2W(test_poster.$title.val()):""};void0
-- 苦力怕是什么?能吃吗?好吃吗?是青菜味的吗?
-- 苦力怕是什么?能吃吗?好吃吗?是青菜味的吗?