I need to encode some lines to add to the url.
My line contains several words: "abc def hij"(i.e. not three separate lines, but one line with three words in it ).
In JavaScript or jQuery, how do you convert such a string ( "abc def hij") to an encoded format "abc+def+hij":?
source
share