logoalt Hacker News

_micheeetoday at 7:33 PM1 replyview on HN

Seems Like the recommendation changed from supporting ; and & to only using &.

Thinking about it, it is a little surprising as, if I remember correctly, in HTML source you should encode & as & right?


Replies

Sardtoktoday at 8:58 PM

& as an escape character only applies to text nodes. Of course, if you want to display the URL on a page, you have to escape it, but not in the href.

show 3 replies