Skip to main content

quote_url_path

Function quote_url_path 

Source
pub fn quote_url_path(s: &str) -> String
Expand description

urllib.parse.quote(s) with its default safe='/': every byte of the UTF-8 encoding outside A-Za-z0-9, _.-~ and / becomes %XX (upper-case hex). StandaloneHTMLBuilder.get_target_uri applies it to a docname before appending the link suffix, so my page links as my%20page.html and reads back as one token in an inventory line.