Saturday, 15 August 2015

html - Browser mis-interpreting '&not' in URL -



html - Browser mis-interpreting '&not' in URL -

apparently if url containing text &not used part of field property, many browsers interpret '¬'. html code:

<a href="#" onclick="window.location='http://www.example.com?some_param=1&notify=true';">click here</a>

will rendered as:

<a href="#" onclick="window.location='http://www.example.com?some_param=1¬ify=true';">click here</a>

i found couple of alternatives substituting &not &%6eot, or posting form instead of getting parameterized url. posts aren't welcome alternative , substitution admittedly hack - need deal other mutual tokens &cent, &curren, &pound, &sect, &copy, &reg... (list taken here).

surely out there has improve solution this?

element attributes interpreted html parser, must escape & characters &amp;. works of time if don't, in cases (such yours) have "right" or won't work.

html browser html-parsing

No comments:

Post a Comment