4
我試圖讓谷歌地圖圖像用下面的代碼:在URL中使用&導致XML錯誤:對實體「foo」的引用必須以';'結尾分隔符
<img src="http://maps.googleapis.com/maps/api/staticmap?center=#{profile.latitude},#{profile.longitude}&zoom=14&size=400x400&sensor=false"/>
,但我得到我的瀏覽器除外,它說:
Error Parsing /content/profile.xhtml:
Error Traced [line: 48] The reference to entity "zoom" must end with the ';' delimiter.
如何避免在URL解釋&
爲XML?
+1。爲此掙扎了一個小時。啊。 – cbmeeks 2013-12-11 18:06:12
此處深入說明:http://stackoverflow.com/q/16303779 – BalusC 2015-09-25 11:47:18