Skip to end of banner
Go to start of banner

urlDecode

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Syntax

urlDecode(textToDecode)

Description

Decodes text from URL format. This is useful when parsing a URL address used by a REST command.

Parameters

Parameter name

Type

Required

Description

textToDecode

string

Yes

Text to decode from URL format.

Return type

String

Returns the input text URL format

Example

string url = "https://marketplace.atlassian.com/search?query=power%20scripts";
string product = substring(url, indexOf(url, "=") +1, length(url));

return urlDecode(product);

Returns "power scripts"

See also

  • No labels