[Blogger] Error parsing XML :The reference to entity “version“ must end with the 〝;〝 delimiter

It looks like something is interpreting your document as XML rather than HTML. XML is much stricter than HTML.

one of the rules is that ampersands (&) have a special meaning. They mean "here comes an XML entity", which is a special character. For instance, you can type " to insert ", or > to insert > into your document.

In this case, your code is interpreting &version on line 6 as the start of one of these entities. If you update line 6 as follows:

js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.0";

Then you should find that error disappears.

Source

Error parsing XML : The reference to entity “version” must end with the ';' delimiter
Error parsing XHTML: The content of elements must consist of well-formed character data or markup

沒有留言:

技術提供:Blogger.