Cái này mình nhặt được ở trang nước ngoài dao diện phù hợp cho wap còn chất lượng anh em tự test nhé
Demo Xem
Code : Chuyển html thành bbcode </div>
<br/><div class="title_menu_edryc"><strong>Html To BBcode converter</strong></div><div class="ct"><script language="JavaScript">
<!--
zGOW=0;xd=0;zap="";zAth='12274';zAthG='12274';zTt='0';zir='';zBTS=1;zBT=1;zSt='';zGz=''
ch='compute';gs='javascript';xg="JavaScript";zcs=''
zFDT='0'
zFST='0'
zOr='B3DEsb2F20kA09DI';zTbO=zRQO=1;zp0=zp1=zp2=zp3=zfs=0;zDc=1;
zSm=zSu=zhc=zpb=zgs=zdn='';zFS='B3D10B30110B00101';zFD='B3D10B30110B00101'
zDO=zis=1;zpid=zi=zRf=ztp=zpo=0;zdx=20;zfx=100;zJs=0;
zi=1;zz=';336280=2-1-1299;72890=2-1-1299;336155=2-1-12-1;93048=2-1-12-1;30050=2-1-12-1';zx='3-1-1399';zde=15;zdp=1440;zds=1440;zfp=0;zfs=66;zfd=100;zdd=20;zaX=new Array(11, new Array(100,504,8198,1,'336,210'),7, new Array(100,284,8196,9,'336,290'));zDc=1;;zDO=1;;zhc='';;zGTH=1;
zGo=0;zG=17;zTac=2;zDot=0;
zObT="Javascript";zRad=5;var tp=" primedia_"+(zBT?"":"non_")+"site_targeting";if(!this.zGCID)zGCID=tp
else zGCID+=tp;
if(zBT>0){zOBR=1}
//-->
</script>
<form action="#">
<table align="center" cellpadding="0" cellspacing="5"
border="0">
<tr>
<td align="center">
<textarea name="xx" cols="15" rows="10">
</textarea>
</td>
</tr>
<tr>
<td align="center">
<input type="button" value="Text to HTML" onclick=
"s=form.xx.value;s=s.replace(/&lt;/g,'<');s=s.replace(/&gt;/g,'>');s=s.replace(/&amp;/g,'&'); form.xx.value = s; form.xx.focus();form.xx.select();return false;">
<input type="button" value="HTML to Text" onclick=
"s=form.xx.value;s=s.replace(/</g,'&lt;');s=s.replace(/>/g,'&gt;');s=s.replace(/&/g,'&'); form.xx.value = s; form.xx.focus();form.xx.select();return false;">
</td>
</tr>
<tr>
<td align="center">
<input type="button" value="HTML thành bbCode"
onclick="s=form.xx.value;s=s.replace(/<a href=/g,'<url=');s=s.replace(/<\/a/g,'<\/url');s=s.replace(/</g,'[');s=s.replace(/>/g,']'); form.xx.value = s; form.xx.focus();form.xx.select();return false;">
<input type="button" value="bbCode thành HTML"
onclick="s=form.xx.value;s=s.replace(/\/g,'>'); form.xx.value = s; form.xx.focus();form.xx.select();return false;">
</td>
</tr>
</table>
</form>[/code]
Demo Xem
Code : Chuyển html thành bbcode </div>
<br/><div class="title_menu_edryc"><strong>Html To BBcode converter</strong></div><div class="ct"><script language="JavaScript">
<!--
zGOW=0;xd=0;zap="";zAth='12274';zAthG='12274';zTt='0';zir='';zBTS=1;zBT=1;zSt='';zGz=''
ch='compute';gs='javascript';xg="JavaScript";zcs=''
zFDT='0'
zFST='0'
zOr='B3DEsb2F20kA09DI';zTbO=zRQO=1;zp0=zp1=zp2=zp3=zfs=0;zDc=1;
zSm=zSu=zhc=zpb=zgs=zdn='';zFS='B3D10B30110B00101';zFD='B3D10B30110B00101'
zDO=zis=1;zpid=zi=zRf=ztp=zpo=0;zdx=20;zfx=100;zJs=0;
zi=1;zz=';336280=2-1-1299;72890=2-1-1299;336155=2-1-12-1;93048=2-1-12-1;30050=2-1-12-1';zx='3-1-1399';zde=15;zdp=1440;zds=1440;zfp=0;zfs=66;zfd=100;zdd=20;zaX=new Array(11, new Array(100,504,8198,1,'336,210'),7, new Array(100,284,8196,9,'336,290'));zDc=1;;zDO=1;;zhc='';;zGTH=1;
zGo=0;zG=17;zTac=2;zDot=0;
zObT="Javascript";zRad=5;var tp=" primedia_"+(zBT?"":"non_")+"site_targeting";if(!this.zGCID)zGCID=tp
else zGCID+=tp;
if(zBT>0){zOBR=1}
//-->
</script>
<form action="#">
<table align="center" cellpadding="0" cellspacing="5"
border="0">
<tr>
<td align="center">
<textarea name="xx" cols="15" rows="10">
</textarea>
</td>
</tr>
<tr>
<td align="center">
<input type="button" value="Text to HTML" onclick=
"s=form.xx.value;s=s.replace(/&lt;/g,'<');s=s.replace(/&gt;/g,'>');s=s.replace(/&amp;/g,'&'); form.xx.value = s; form.xx.focus();form.xx.select();return false;">
<input type="button" value="HTML to Text" onclick=
"s=form.xx.value;s=s.replace(/</g,'&lt;');s=s.replace(/>/g,'&gt;');s=s.replace(/&/g,'&'); form.xx.value = s; form.xx.focus();form.xx.select();return false;">
</td>
</tr>
<tr>
<td align="center">
<input type="button" value="HTML thành bbCode"
onclick="s=form.xx.value;s=s.replace(/<a href=/g,'<url=');s=s.replace(/<\/a/g,'<\/url');s=s.replace(/</g,'[');s=s.replace(/>/g,']'); form.xx.value = s; form.xx.focus();form.xx.select();return false;">
<input type="button" value="bbCode thành HTML"
onclick="s=form.xx.value;s=s.replace(/\/g,'>'); form.xx.value = s; form.xx.focus();form.xx.select();return false;">
</td>
</tr>
</table>
</form>[/code]