In my asp.net mvc page I create a link that renders as followed:
According to the W3C validator, this is not correct and it errors after the first ampersand. It complains about the & not being encoded and the entity &p not recognised etc.
AFAIK the & shouldn't be encoded because it is a separator for the key value pair.
For those who care: I send these pars as querystring and not as "/" seperated values because there is no decent way of passing on optional parameters that I know of.
--EDIT--
To put all the bits together:
- an anchor (<a>) tag's href attribute needs an encoded value
- & encodes to &
- to encode an '&' when it is part of your parameter's value, use %26