我正在尝试使用以下代码获取谷歌地图图像:
<img src="http://maps.googleapis.com/maps/api/staticmap?center=#{profile.latitude},#{profile.longitude}&zoom=14&size=400x400&sensor=false"/>
但我的浏览器出现异常,上面写着:
错误解析 /content/profile.xhtml:
错误跟踪 [行:48] 对实体“缩放”的引用必须以“;”结尾 分隔符。
如何避免将&
URL 解释为 XML?