Skip to main content

percent_decode

Function percent_decode 

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

Percent-decode, treating + as a space the way a query string does.

Public because a path parameter has to come back out of a URL as whatever went in: path_for escapes a / in an id, and the route that captures it has to undo that, or the view is handed a%2Fb and shows it to somebody.