Adsense parser code is the tool used to convert HTML into XML language easily understandable by blogger blogs platform. This Parser code is used to convert all ad codes form any advertising network that needed to be placed in blogger blogs HTML.
This Parser convert ads code into following characters;
‘<‘ becomes ‘<’‘>’ becomes ‘>’
‘”‘ (double quote) becomes ‘"’
”’ (single quote) becomes ‘'’
‘&’ becomes ‘&’
Learn in here step by step on how to add this parse to a blog;
1. Create page on your blogger dashboard<form>
<textarea name="data1" style="width: 590px; height: 200px"></textarea>
<input class="tec2" type="button" value="Convert" onclick="html2entities(this.form.data1)" onmouseout="this.className='tec2'" onmouseover="this.className='tec2 tec2hov'">
<input class="tec2" type="reset" value="Clear" onmouseout="this.className='tec2'" onmouseover="this.className='tec2 tec2hov'">
</form>
3. Go to blogger dashboard then go to theme section then click edit HTML
<script type='text/javascript'>
//<![CDATA[
function html2entities(){var a=/[<>"'&]/g;for(i=0;i<arguments.length;i++)arguments[i].value=arguments[i].value.replace(a,function(a){return replacechar(a)})}function replacechar(a){if("<"==a)return"<";if(">"==a)return">";if('"'==a)return""";if("'"==a)return"'";if("&"==a)return"&"};
//]]>
</script>
input.tec2{background:none repeat scroll 0 0 #888;border:1px dotted #888;color:#FFF;font:bold 13px ‘trebuchet ms’,helvetica,sans-serif}
input.tec2hov{background:none repeat scroll 0 0 #aaa;border:1px dotted #aaa;color:#FFF;font:bold 13px ‘trebuchet ms’,helvetica,sans-serif}
textarea{width:100%;color:#3D72C0;font:14px verdana;background:#fff;border:1px dotted #ff0000}
textarea:hover{border:1px dotted #222}

0 comments