encodeURIComponent

external fun encodeURIComponent(uriComponent: String): String(source)

Encodes a text string as a valid component of a Uniform Resource Identifier (URI).

Parameters

uriComponent

A value representing an unencoded URI component.


external fun encodeURIComponent(uriComponent: Number): String(source)
external fun encodeURIComponent(uriComponent: Boolean): String(source)