Membuat Parse HTML Di Blog
Kode PARSE HTML:
<br />
<center><div style="text-align: -webkit-auto;">
<br /></div>
<br />
<div class="style1" style="color: red;">
<span style="font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif; font-size: large;"><b><u><br /></u></b></span></div>
</center><script type="text/javascript">
function convert(){var ele1 = document.getElementById("somewhere");var replaced;replaced = ele1.value;replaced = replaced.replace(/&/ig, "&");replaced = replaced.replace(/</ig, "<");replaced = replaced.replace(/>/ig, ">");replaced = replaced.replace(/"/ig, """);replaced = replaced.replace(/±/ig, "±");replaced = replaced.replace(/©/ig, "©");replaced = replaced.replace(/®/ig, "®");replaced = replaced.replace(/ya'll/ig, "ya'll");ele1.value = replaced;}
</script><center><table border="0" cellpadding="0" cellspacing="0" style="text-align: center; width: 400px;"><tbody>
<tr> <td valign="top" width="400"><textarea cols="70" id="somewhere" rows="13" style="background: none repeat scroll 0% 0% rgb(248, 248, 248); border: 1px solid rgb(204, 204, 204);"></textarea><br />
<br />
<div style="text-align: left;">
<input onclick="convert();" type="button" value="Parse Script" /></div>
</td> </tr>
</tbody></table>
</center><br />
<br />
<div style="text-align: center;">
<br /></div>
Silahkan lihat Contohnya,Klik Disini.
source:http://www.sitonga.com/2012/07/membuat-parse-html-di-blog.html
No comments:
Post a Comment