w3c markup validator ampersand (&) error

前端 未结 4 695
孤城傲影
孤城傲影 2020-12-03 23:18

Is there any workaround for the w3c validation error for an & present in urls or some other place in HTML markup?
It says:

&

相关标签:
4条回答
  • 2020-12-03 23:43

    Use & for literal ampersands, even in URLs.

    http://htmlhelp.com/tools/validator/problems.html#amp

    0 讨论(0)
  • 2020-12-03 23:50

    Replace with &

    0 讨论(0)
  • 2020-12-03 23:55

    for each & sign you got write & in your example it would be:

    c91588793296e2?s=50&d=http%3A%2F%
    
    0 讨论(0)
  • 2020-12-03 23:59

    should be:

    c91588793296e2?s=50&d=http%3A%2F%.

    notice the &

    I know it feels wonky, but ampersands have to be encoded as html entities, which are confusingly denoted with ampersands.

    0 讨论(0)
提交回复
热议问题