encodeURI()
will not encode~!@#$&*()=:/,;?+'
Use on entire stringencodeURIComponent()
will not encode:~!*()'
Use on tricky values. Will ruin=
and&
Created
September 13, 2016 14:22
-
-
Save karlpokus/23a0ac762bfdac7261e8aca5c57da1f7 to your computer and use it in GitHub Desktop.
encode urls in js. Safe characters and what-not.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment