Created
September 13, 2012 22:12
-
-
Save austinrfnd/3718078 to your computer and use it in GitHub Desktop.
Discovered this in my work codebase.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
encodeURIComponent(q).replace(/%20/g, '+').replace(/%2C/g, ',').replace(/%26/g, '&').replace(/%3D/g, '=').replace(/%2B/g, '+') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment