我正在尝试验证我的网站,但无法解决。这是我得到的错误:
**Bad value https://www.facebook.com/sharer/sharer.php?u=https://www.company.com/blog/post/back-to-running/&t=Back to Running for attribute href on element a: Illegal character in query: space is not allowed.**
我应该在哪里固定空间?我尝试了%20
,%2F
和其他一堆unicode,但是我尝试的所有内容都破坏了我的博客。还得到了与XML有关的错误。任何帮助将不胜感激。
<a class="tweet" target="_blank" href="https://twitter.com/share?url=https%3A%2F%2Fwww.company.com%2Fblog%2Fpost%2Fback-to-running%2F" title="Tweet This"></a>
<a class="facebook" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https://www.snapediting.com/blog/post/back-to-running/&t=Back to Running" title="Share on Facebook"></a>
答案 0 :(得分:0)
尝试修复
back-to-running/&t=Back to Running
到
back-to-running/&t=Back%20to%20Running
如果不起作用,请使用“ +”:
back-to-running/&t=Back+to+Running