Performs the inverse transformation of UrlEscape(), converting each percent-encoded sequence of the form "%AB" into the character with the hexadecimal value 0xAB. It returns std::nullopt if any % is not followed by two hexadecimal digits.
Declared in <absl/strings/escaping.h>
[[nodiscard]]
std::optional<std::string>
UrlUnescape(std::string_view input);
UrlUnescape() is identical to UrlUnescapePlus() except that it does not unescape '+' to ' '.
The unescaped string, or std::nullopt on malformed input.
The return value should not be discarded.
| Name | Description |
|---|---|
| input | The percent-encoded string to unescape. |