M Ansyori
M Ansyori

Reputation: 3

Error parsing XML, line 1940, column 65: The reference to entity "url" must end with the ';' delimiter

So I got this error when I'm going to save my blogger template. Here's the script :

var id = "d0f0e33bec6076b0a9e816d1bc2ab07c";
var redirect = "http://cur.lv/redirect.php?id=" + id + "&url=" ;
var links = $("a[href^='http']");

can some body help me? the error marked on "var redirect" I need a quick response, thanks in advance.

Upvotes: 0

Views: 448

Answers (1)

pavel
pavel

Reputation: 27082

Use & instead of &:

var redirect = "http://cur.lv/redirect.php?id=" + id + "&url=";

Now you have there invalid (and uknown) entity &url (&url; is expected) and XML parser returns an error there.

Upvotes: 2

Related Questions