Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Cross compatible decodeURIComponent()
// about it: http://stackoverflow.com/a/12796866/1260526
// Some Mozilla browsers do wrong conversion
decodeURIComponent(str.replace(/\+/gim,' '));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment