Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在线验证器在我的 XML 页面中的 url 上引发错误。这是受影响的字符串:
http://some.normal.url?params=id%2Cburst%2Cfactor%2Ccp&exp=907031
错误指向第二个等号 exp = 907031 的位置。
我之前搜索过,根据一些帖子等号是不允许的,但是第一个等号是如何通过的,如果我引用它,链接将不起作用。
我可以在这里做些什么来绕过这个错误?
和号是问题所在。XML 中的 & 符号充当编码字符的开头,因此您需要对 & 符号本身进行编码。例如&。 将您的完整 URL 更改为: http://some.normal.url?params=id%2Cburst%2Cfactor%2Ccp&exp=907031
&
http://some.normal.url?params=id%2Cburst%2Cfactor%2Ccp&exp=907031