Function encodeURISearchPart

  • Encodes part of URI search string, i.e. either search parameter name or value.

    In contrast to standard encodeURIComponent function, this one encodes spaces as plus signs "+" (U+002B). In addition, percent-encodes all URI reserved characters according to RFC3869.

    Parameters

    • part: string | number | boolean

      Part of URI search string to encode.

    Returns string

    Encoded part of URI search string.

Generated using TypeDoc