I don't think it would be difficult. Most of the errors would be changing "&id=xxx&sortid=" to "&id=xxx&sortid". Others include closing img tags at the end, same with input.
(X)HTML validity is nice, however, our primary focus is getting everything to work properly. As long as it also does that without & this is not a pressing issue