<a href=""> will not open links when the path has spaces. (kml)

时间:2017-09-08 14:52:12

标签: kml google-earth

I am using google earth to map placemarkers that each display their attributes. Some of the attributes are hyperlinks that open up a file or folder. When I use a-href to link a folder path that includes spaces, the link will not work in Google Earth. Is there a way to make the link work without changing the folder name?

1 个答案:

答案 0 :(得分:1)

在打印href属性时,您必须为html特殊字符转义它。所以你的空间将是%20。