SyntaxFix
Write A Post
Hire A Developer
Questions
Try this?
encodeURIComponent('space word').replace(/%20/g,'+')