• Encode URL parameters according to RFC3986 using %-encoding. Encodes spaces as +.

    Parameters

    • str: string

      String value to encode

    Returns string

    encoded string

    Remarks

    differs from encodeURIComponent in also encoding !, ', (, ), and *