escape()

Encodes a string to be used in a query part of a URL.

This function is valid in v2.1.0 to v2.24.3. This function has been downloaded 72 times.

Parameter

{string} str
String to encode.

Returns

{string}
Encoded string that can be used in the query part of a URL.

Requiring Functions

This function is directly required by the following functions:

  • modURL()
    Modify a URL.
  • toParams()
    Takes an object and turns it into a serialized URL parameter string.