GLib.uri_unescape_string

function uri_unescape_string(escaped_string: String, illegal_characters: String): String {
    // Gjs wrapper for g_uri_unescape_string()
}
  

Unescapes a whole escaped string.

If any of the characters in illegal_characters or the character zero appears as an escaped character in escaped_string then that is an error and null will be returned. This is useful it you want to avoid for instance having a slash being expanded in an escaped path element, which might confuse pathname handling.

Since 2.16

escaped_string

an escaped string to be unescaped.

illegal_characters

a string of illegal characters not to be allowed, or null.

Returns

an unescaped version of escaped_string. The returned string should be freed when no longer needed.