Question: I’m trying to pass a string of several words to the parameter. In endpoint, a query is formed with the parameter as “api/pages/search?name=firstWord+secondWord”. And I need to get “api/pages/search?name=firstWord%20secondWord” Best Answer: You can use encodeURIComponent If you have better ...