SyntaxFix
Write A Post
Hire A Developer
Questions
Here is a complete function (taken from PHPJS):
function urldecode(str) { return decodeURIComponent((str+'').replace(/\+/g, '%20')); }