Skip to main content

clean_url_path_segment

Function clean_url_path_segment 

Source
fn clean_url_path_segment(segment: &str) -> String
Expand description

Cleans a single path segment (no /): whitespace runs become a single -, unsafe ASCII is dropped, runs of - collapse to one, and leading/trailing - are trimmed.