Blogger and Blogspot Integration

From LongTail Video Wiki

Jump to: navigation, search

I just thought about sharing this solution, i have a blog hosted on Blogger/Blogspot and when i tried to insert the Longtail javascript to run the ads it displayed the following message: "Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly. XML error message: The reference to entity "s" must end with the ';' delimiter."

To overcome this problem i had to parse the html code for inserting the javascript, so the following code: <script language="JavaScript" src="http://www.ltassrv.com/serve/api5.4.asp?d=xxxx&s=xxxx&c=xxxx&v=1"></script>

became this: <script language="JavaScript" src="http://www.ltassrv.com/serve/api5.4.asp?d=xxxx&s=xxxx&c=xxxx&v=1&quot;></script>

by using an html parser here: http://www.blogcrowds.com/resources/parse_html.php

if you insert the parsed code blogger will accept it and it works.

Hope this will help someone

Personal tools