Omar Albeik
Menu
Blog
Snippets
Projects
Gallery
About
Home
Snippets
Encode string and replace /%20/ with +
Javascript
Share
Encode string and replace /%20/ with + to be used in a URL
javascript
Copy
encodeURI(query).replace(/%20/g, '+');
Copyright © 2024
Omar Albeik
. All rights reserved.