URL Escape
This library is for encoding/escaping special characters in URLs and decoding/unescaping URLs as well.
Usage
Encoding
This crate provides some encode_*
functions to encode URL text in different situations.
For example, to put a text to a fragment, use the encode_fragment
function.
extern crate url_escape;
assert_eq!;
The functions suffixed with _to_writer
, _to_vec
or _to_string
are useful to generate URL text.
extern crate url_escape;
let mut url = String from;
assert_eq!;
url.push_str;
assert_eq!;
url.push;
assert_eq!;
url.push;
assert_eq!;
assert_eq!;
Decoding
extern crate url_escape;
assert_eq!;
Crates.io
https://crates.io/crates/url-escape