Function decode_url

Source
pub fn decode_url(data: &str) -> Result<String, Box<dyn Error>>
Expand description

Decodes a URL percent-encoded string.

ยงExamples

use nutek_encode_lib::encoder;
let decoded = encoder::decode_url("hello%20world%21").unwrap();
assert_eq!(decoded, "hello world!");