Ampersands in hyperlinks cause W3C validation to fail

前端 未结 4 1880
-上瘾入骨i
-上瘾入骨i 2021-01-21 04:19

I have a reacurring problem. I code nice standards compliant code only to have it fail due to ampersands within some of the hyperlink urls.

Does anyone know of a work ar

4条回答
  •  無奈伤痛
    2021-01-21 05:18

    I code nice standards compliant code only to have it fail due to ampersands within some of the hyperlink urls.

    Unescaped ampersands in URLs (or anywhere else, if they're not part of an HTML entity!) aren't "nice standards compliant code".

    Turn them into & and you can accurately claim to have done this.

提交回复
热议问题