Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

encodeuricomponent

The encodeURIComponent() function encodes a URI by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character.
console.log(encodeURIComponent('?x=test'));
// expected output: "%3Fx%3Dtest"
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #encodeuricomponent
ADD COMMENT
Topic
Name
2+1 =