Sabtu, 03 Oktober 2015

Creating a simple HTML parser code to XML For Adsense

Creating a simple HTML parser code to XML For Adsense

Creating a simple HTML parser code to XML - change the HTML code or scripts that we have in the form of XML is a matter that sometimes it is we need. Like if we would make our own template to be applied to BLOGGER. But at other times we often use to convert XML to HTML script code google adsense, Chitika or the other.
Here I will try to share to you how to create HTML to XML parser code. It is fairly easy to do, just you copy and paste the following script you are able to run perfectly.
Parser code that we will create this time can work with ease and simplicity. The workings of the parser code is live copy and paste the script you will change and it will automatically be changed. Script changes will be instantly displayed in the column below. Easy and simple.
<b>Enter Code: </b></div>
<div style="text-align: center;">
<script type="text/javascript">// <![CDATA[
function $(id){ return document.getElementById(id) } var char2entity = { "'" : '&#39;', '"' : '&quot;',  '<' : '&lt;', '>' : '&gt;',  '&#038;' : '&amp;'}; function encode_entities(str) {   var rv = '';  for (var i = 0; i < str.length; i++) {    var ch = str.charAt(i);    rv += char2entity[ch] || ch;  }   return rv;} function do_encode(e){  $('dst').value = encode_entities(e.value)}
// ]]&gt;</script>
<textarea cols="40" onchange="do_encode(this)" onkeyup="do_encode(this)" rows="10" style="font-family: monospace; height: 10em; width: 30em;"></textarea><b>&nbsp;</b><br />
<b><br /></b>
<b>Parsed Code</b></div>
<div style="text-align: center;">
<textarea cols="40" id="dst" onclick="this.select()" onfocus="this.select()" readonly="readonly" rows="10" style="font-family: monospace; height: 10em; width: 30em;"></textarea><br />
Hopefully the review in my article on this time may add to the knowledge and experience in building your personal web. And I say thank you for your visit.
Keyword Search: HTML parser code to XMLCreating a simple HTML parser code to XML.

Creating a simple HTML parser code to XML For Adsense Rating: 4.5 Diposkan Oleh: Kang Icung

0 komentar:

Posting Komentar