mathiasbynens / he

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

Why decode method doesn't do "%2c" "%20" #14

Closed markson closed 11 years ago

markson commented 11 years ago

Why decode method doesn't do "%2c" "%20"

mathiasbynens commented 11 years ago

Because those aren’t HTML entities. For URL encoding/decoding, use {en,de}codeURIComponent().