Blogger Not Accepting Javascript / Error Parsing XML - Solved !


If you are blogging for even 2 months you must have seen this error once when you tried to add a javascript in you blog theme. This error appears when a javascript contains some symbols like $ or & or sometime =. All these errors show error when theme is saved. and the error says "Error parsing XML, line number, column number: The reference to entity "version" must end with the 'example' delimiter".


As shown in above image, blogger is not accepting Facebook like button code and showing error. To solve this error I have to simply make this code acceptable by blogger.

You might have problem saving codes of some ads like media.net ads, chitika ads, bidvertiser ads etc all these ads are sometimes not accepted by blogger so you can fix them by following this post and run ads or custom scripts.


How to add javascript codes in blogger without parsing error ?

Follow below steps:

(1). Grab the javascript code which you want to fix in to a notepad or paste it in your blog's <head> or elsewhere in your blog template.

(2). Copy below piece of Text / HTML tag.

//<![CDATA[

(3). Now paste it after <script> or <script type='text/javascript'> of your javascript code.

(4). Now find the closing tag of your script i.e <script> and paste below piece of HTML above it.

//]]>

(5). Save your theme.

You didn't see any error right ? if this worked for you feedback and share this post with others. If not share your problem by leaving a comment below.

Your final code should be like below:

<script type='text/javascript'>
//<![CDATA[
function myFunction() {
var btn = document.createElement("Click");
window
.open("URL")
}
//]]>
</script>

Though it is a small error but I thought to share how to fix it because it is asked by many bloggers who encountered this error. Hope it helps!

Thanks for visiting +101helper.

Search keywords: blogger not accepting javascript error,how to add javascript in blogger post,fix xml parsing error blogger,how to fix xml parsing error blogspot,javascript not accepting blogger template

Related Posts:

  • How To Find RSS Feeds Of Blogger BlogRSS feed is a source of latest posts in a blog or website. It contains a bunch of text with some summery from a post, its title, category, publish date etc. RSS feeds are required sometimes for some gadgets like recent post w… Read More
  • How To Enable Comment Moderation In BloggerComment moderation means publishing comments after approval. It is helpful to avoid spam comments to be published on blog. Comment moderation is not enabled in simple or another template so you have enable it on your own. Its… Read More
  • How To Disable Navbar In BloggerNavbar means navigation bar. It lies at the top of blog in blogger. It has a search box, share buttons and some more buttons. It is enabled in every blogger template but can be disabled easily by Admin. It has different style… Read More
  • How To Enable Or Disable Comments In BloggerPreviously I have created a post in which I have shown how to install diqus comments in blogger, today I am back with a related post(comments). This post is to tell you how to enable or disable comments on specific posts and … Read More
  • How To Add "Read More" Link In Blogger After PostYou might have noticed that in most of blogs these is a small description of a post and after that there is a "Read More" button to read full post. This read more button is addedbecause of  … Read More