logoalt Hacker News

bawolffyesterday at 9:41 PM0 repliesview on HN

That is incorrect. Entities apply to attributes.

In HTML escaping & is kind of optional and the browser just tries to figure out what you mean, but if you are doing things properly you should use & in href attributes.