decodeURIComponent

Returns the unencoded version of an encoded component of a Uniform Resource Identifier (URI).

Syntax

decodeURIComponent(encodedComponent)

Parameters

Return value

A string.

Examples

decodeURIComponent("hello%20world%2C%20%D0%B7%D0%B4%D1%80%D0%B0%D0%B2%D0%BE!")
"hello world, здраво!"

See also