Skip to main content

How To Easily Parse The HTML Code For The Ad Adsense

How To Easily Parse The HTML Code For The Ad Adsense

Good night then on the blog buddy this time I will discuss "How to easily parse the HTML code for the ad adsense blogger". And hopefully this simple article easy in understand it and can be useful for us all.

Parse HTML is one of the methods required what if we want to put the script adsense ads in a blog post. Different if we put adsense ads in the sidebar, we just need to parse the ad code.

Parse or convert HTML is the process of changing the language of HTML to XML. The trick parse HTML to XML is not a difficult process, it is easy to do, we just need to copy the ad script into a parse box that has been provided, then press the button Parse, the HTML code will be instantly transformed into XML code.

Once the XML code so, please mate stayed paste in place that you want. Ordinary under the code <data: post.body /> to facilitate please use Ctrl + F. usually there are 2 or 3 of this code. in my blog template, I select the code to third.
<div expr:id='&quot;post1&quot; + data:post.id'/>
<div class='googlepublisherads' style='margin:10px 0'>
<div class='separator' style='clear: both; text-align: center; '>
ADVERTISEMENT ADSENSE CODE ARE ALREADY IN PRASE
</div>
</div>
<div expr:id='&quot;post2&quot; + data:post.id'><data:post.body/></div>
<script type='text/javascript'>
var obj0=document.getElementById(&quot;post1<data:post.id/>&quot;);
var obj1=document.getElementById(&quot;post2<data:post.id/>&quot;);
var s=obj1.innerHTML;
var t=s.substr(0,s.length/2);
var r=t.lastIndexOf(&quot;&lt;br&gt;&quot;);
if(r&gt;0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+4);}
</script>
Then save the template and let you see the results, pal Before closing the article How to easily parse the HTML code adsense ads, please provide input in the comment column yes. If my friend find this article useful, do not forget to click the share button :) So that everyone knows

Popular posts from this blog

Blogger Setting DNS, CNAME, Domain In Freenom

Anews - Freenom is a site that provides a free domain service in the first year. It will be an opportunity for those of you who do not have their own domain costume. Only domain which is provided free of charge the first year include domain tk, ga, ml, cf and gq.
Well for those of you who are interested to have your own domain costume, you can take advantage of this free domain, you just sign up through this link freenom.com. Process list does not take a long time, you are only required to enter your email and password you want to use to login cpanel.
Once you register, then please choose the domain you want to create, by going to the Domain menu and then select Register a New Domain. Picture as shown below, then write the domain you wish to generate and click Check Availability. Then select the domain you want is up to you, whether you are happy with tk, ga, etc ml. As shown below. Setting dns, CNAME, Domain In Freenom [Blogger]
Once finished you create a domain, now go to the Menu an…

5 Most Interesting Places In Singapore

Singapore is a small country that is beautiful and has only area not less than 719.1 km. The currency in use is the Singapore dollar. Apart from that, the Lions classified as developed countries have an important role to world trade.
But despite the country small country Singapore, but Singapore has a variety of beautiful places that can be made as a tourist spot for your vacation. Below are five places you can visit if you want a vacation.
1. Places Merlion Park

Here it is the country's iconic Singapore Merlion Park is a statue with the head of a lion and the body of the fish being a mascot of Singapore. Merlion name is a combination of "mermaid" and "lion".
Parks Merlion Park is open 24 hours a day and there is no cost for anyone who wants to visit, so you can save the cost of your trip. Besides taking pictures you can also enjoy the river at this location because of the Merlion Park is located in front of the Singapore River.
2. Places Orchard Road

Orchard Ro…

How to Protect Online Privacy and Security Bitcoin you ?

Anews.id Tips - Online privacy and protection of digital data is a pretty big deal. And anyone that person is no exception, Privacy applies to users of Bitcoin as they save a fortune in a place commonly known as digital or online wallet. Some parties, such as governments, hackers and non-state actors that might be compromising personal data of citizens globally every day, but there are many steps you can take to protect yourself.
So do not underestimate it, in the digital world you must remain vigilant because the hacker threat exists. Especially for those of you who love to store wealth in the form Bitcoin or other similar digital currency. You have to be very vigilant and careful when doing activities with your web browser. That avoid this, you can try a few tips from me.
Protect Online Privacy and Security Bitcoin
➤ Privacy-Centric Web Browser
There are several web browsers that offer greater privacy than standard mainstream browser used. Open source browser Brave is a great tool to …