The HTML standards are a complete mess and create too much confusion. In fact, the only three characters that should have been escaped in an HTML query string were &, = and # and they should have been escaped simply as \&, \= and \# (and \\ should be used for \, of course). The people to work in standards comittees should be tested of their IQ's first.