mathiasbynens / he

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

encode(): Add option to avoid named references (for better compatibility) #6

Closed mathiasbynens closed 11 years ago

mathiasbynens commented 11 years ago

Suggested by @zcorpan:

13:47:03 <zcorpan> maybe it'd be useful to opt to avoid named references if one wants better compat with old browsers
13:47:40 <zcorpan> e.g. old IE doesn't support &apos;
13:47:56 <zcorpan> nor the 1000s of mathml entities