pub fn encode_uri_component(text: &str) -> StringExpand description
JavaScript’s encodeURIComponent: every byte of the UTF-8 text except
A-Z a-z 0-9 - _ . ! ~ * ' ( ) is percent-encoded.
§Examples
use markdown_link::encode_uri_component;
assert_eq!(encode_uri_component("a b/c#d"), "a%20b%2Fc%23d");
assert_eq!(encode_uri_component("é"), "%C3%A9");