html – 对实体“子集”的引用必须以’;’结尾分隔符

html – 对实体“子集”的引用必须以’;’结尾分隔符,第1张

概述参见英文答案 > The reference to entity “foo” must end with the ‘;’ delimiter                                    1 我试图在Blogger博客的模板中加入webfonts: <?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE html><html b 参见英文答案 > The reference to entity “foo” must end with the ‘;’ delimiter1
我试图在Blogger博客的模板中加入webFonts:
<?xml version="1.0" enCoding="UTF-8" ?><!DOCTYPE HTML><HTML b:version='2' class='v2' expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.Google.com/2005/gml/b' xmlns:data='http://www.Google.com/2005/gml/data' xmlns:expr='http://www.Google.com/2005/gml/expr'>  <head>    <link href='http://Fonts.GoogleAPIs.com/CSS?family=Share:400,700&subset=latin,latin-ext' rel='stylesheet' type='text/CSS'>    <link href='http://Fonts.GoogleAPIs.com/CSS?family=Istok+Web:400,latin-ext' rel='stylesheet' type='text/CSS'>    <Meta content='IE=Emulateie7' http-equiv='X-UA-Compatible'/>    <b:if cond='data:blog.isMobile'>      <Meta content='wIDth=device-wIDth,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0' name='vIEwport'/>    <b:else/>

当我尝试保存模板时,我得到:

Error parsing XML,line 5,column 76: The reference to entity "subset" must end with the ';' delimiter.

我试图添加一个;但不成功.这些链接是从Google Web Font生成的.

我该怎么解决这个问题?谢谢.

解决方法 那是因为&是XML中的保留字符,意味着“XML实体从这里开始”. XML实体允许您打印字符或字符序列,这些字符或字符序列很难让您以文字方式嵌入到文档中,因为您没有在键盘上或因为文档编码禁止它.例如,在(X)HTML,& eacute;打印字符“é”,这在大多数美国键盘上都不容易找到. (可用实体取决于XML文档的<!DOCTYPE>声明.)

这个计划的问题是,这意味着你不能毫不含糊地离开字面和字体如果您的文档可以作为实体的开始,您的文档周围的字符,因此您需要将其编码为一个实体来解决该问题.

你将需要更换你所有的流浪&与& amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp没有愤怒的XML解析器.在你的情况下,你应该在你的两个< link>中替换& amp; amp; amp; amp; amp; amp;标签.

总结

以上是内存溢出为你收集整理的html – 对实体“子集”的引用必须以’;’结尾分隔符全部内容,希望文章能够帮你解决html – 对实体“子集”的引用必须以’;’结尾分隔符所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1132137.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-30
下一篇 2022-05-30

发表评论

登录后才能评论

评论列表(0条)

保存