STRING::UNESCAPE_PATH
1g 2023-11-12 laplante@plcb.ca GOWEB/STRING — Decode Escaped Pathstitle: “STRING::UNESCAPE_PATH” version: “1.0.0” date: 2023-11-12 author: “laplante@plcb.ca” section: “1g” category: “GOWEB/STRING”
string::unescape_path Decode Escaped Paths
string::unescape_path(string)
unescape_path(string)
string::unescapePath(string)
unescapePath(string)
The unescape_path
function decodes a string previously encoded using escape_path
.
It restores special characters that were percent-encoded or escaped for safe use in paths.
res={{
a := { "array" : [1,2,3] };
unescape_path(escape_path(a));
unescape_path(escape_path("A long/string"));
unescape_uri(escape_uri(a));
unescape_uri(escape_uri("A long/string"));
}}.
Returns:
{"array":[1,2,3]}A long/string{"array":[1,2,3]}A long/string
laplante@plcb.ca