非法字符;不允许有空格



我正在尝试验证我的网站,但无法解决此问题。这是我得到的错误:

**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>

尝试修复

back-to-running/&t=Back to Running

back-to-running/&t=Back%20to%20Running

如果不起作用,请使用"+":

back-to-running/&t=Back+to+Running

最新更新