mathiasbynens / he

A robust HTML entity encoder/decoder written in JavaScript.
https://mths.be/he
MIT License
3.45k stars 254 forks source link

Certain named entities don't decode (& and <) #92

Closed simongiles1 closed 10 months ago

simongiles1 commented 10 months ago

I have run this he.decode('foo&ampbar');

And it outputs: foo&bar

Apologies if I'm doing something wrong

simongiles1 commented 10 months ago

For whatever reason it wasn't rendering working correctly in jsfiddle but when I tried it on my website it worked fine. Closing the issue.