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

This function is valid in v2.1.0 to v2.24.2. This function has been downloaded 51 times.


{string} str
String to encode.


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.