我正在使用带有 html5 的 w3c 验证器。我有一个要传入 href 的数组afilter[]=abc
,我尝试如下转义括号:
<a href='slideshowform.php?x=y&afilter[]=abc'>phases of matter</a>
但我仍然收到错误:
Bad value slideshowform.php?x=y&afilter[]=abc for attribute href on element a: Illegal character in query component.
如何在不出错的情况下传递数组 - 或者我是否错误地转义了括号?