I want to URL encode this:
SELECT name FROM user WHERE uid = me()
Do I have to download a module for this? I already have the request module.
You can use JavaScript's encodeURIComponent:
encodeURIComponent
encodeURIComponent('select * from table where i()')
giving
'select%20*%20from%20table%20where%20i()'
1.4m articles
1.4m replys
5 comments
57.0k users