mathiasbynens / he

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

decode(): Make sure decimal and hexadecimal escapes are within the Unicode range #7

Closed mathiasbynens closed 11 years ago

mathiasbynens commented 11 years ago
he.decode('�'); // '\uFFFD'