久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

對實體“foo"的引用必須以 ';' 結尾分隔

The reference to entity quot;fooquot; must end with the #39;;#39; delimiter(對實體“foo的引用必須以 ; 結尾分隔符)
本文介紹了對實體“foo"的引用必須以 ';' 結尾分隔符的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我有 Google 結帳沙箱生成的 HTML 代碼,可以在 HTML 頁面中正常工作.當我將相同的代碼放在 XHTML 頁面中時,它會引發以下異常:

I have Google checkout sandbox generated HTML code which works fine in HTML page. When I put the same code in XHTML page, it throws the below exception:

對實體w"的引用必須以;"結尾分隔符

the reference to entity "w" must end with the ';' delimiter

它在下面的src屬性中引用了URL中的請求參數w:

It's referring the request parameter w in the URL in the below src attribute:

<input type="image" name="Google Checkout" alt="Fast checkout through Google"
    src="http://sandbox.google.com/checkout/buttons/checkout.gif?merchant_id=211512493599623&w=180&h=46&style=white&variant=text&loc=en_US"
    height="46" width="180" />

這是怎么引起的,我該如何解決?

How is this caused and how can I solve it?

推薦答案

與號 & 是 HTML 和 XML 中的特殊字符.如果要將其用作普通字符,則必須對其進行正確編碼.&amp; 代替 &:

The ampersand & is a special character in HTML and XML. If you want to use it as a normal character, you have to encode it correctly. Write &amp; instead of &:

src="...9623&amp;w=180&amp;h=46&amp;style=white&amp;variant=text&amp;loc=en_US"

& 表示編碼實體的開始,例如 &lt; 表示 <,或 &amp; 用于 &.在您的情況下,解析器嘗試將 &w 解釋為實體.但是實體總是由 ; 終止,因此如果 ; 丟失,您會收到錯誤消息.

& denotes the start of an encoded entity, such as &lt; for <, or &amp; for &. In your case the parser tries to interpret &w as an entity. But entities are always terminated by an ;, thus if the ; is missing you get the error message.

這篇關于對實體“foo"的引用必須以 ';' 結尾分隔符的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How can I duplicate a div onclick event?(如何復制 div onclick 事件?)
opening html from google drive(從谷歌驅動器打開 html)
How to embed videos from Google drive to webpage?(如何將視頻從 Google 驅動器嵌入到網頁?)
How to view Google drive pdf link in iframe(如何在 iframe 中查看 Google Drive pdf 鏈接)
HTML2PDF using Google Drive API(使用 Google Drive API 的 HTML2PDF)
Google Forms: Send data to spreadsheet(Google 表單:將數據發送到電子表格)
主站蜘蛛池模板: 欧美精品一区二区三区四区 | 久久综合久久综合久久 | 一级在线观看 | 久久中文字幕电影 | 国产97色 | 在线播放第一页 | 超碰97人人人人人蜜桃 | av永久免费 | 国产99久久精品一区二区永久免费 | 中文字幕在线观看一区 | 国产探花在线精品一区二区 | 一级欧美日韩 | 日日摸夜夜添夜夜添精品视频 | 天天综合干 | 日韩一区二区三区视频在线观看 | 黄色精品| 精品一区二区三区在线视频 | 美女一区二区在线观看 | 中文字幕一区二区三区不卡 | 国产视频不卡一区 | 亚洲欧美国产精品一区二区 | 国产欧美日韩一区二区三区在线观看 | av入口 | 视频一区中文字幕 | 91观看| 久久久久久久久精 | 成人免费视频观看 | 懂色中文一区二区在线播放 | 美日韩免费视频 | 欧美精品久久久久久久久久 | aaa级片 | 亚洲综合国产精品 | 99精品国产一区二区三区 | 特黄视频| 黄片毛片免费观看 | 亚洲欧洲精品在线 | 人人玩人人添人人澡欧美 | 国产精品高清一区二区三区 | 99精品久久 | 日本精品国产 | 日本电影免费完整观看 |