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()'
2.1m questions
2.1m answers
60 comments
57.0k users