compass.web.url_utils.sanitize_url# sanitize_url(url)[source]# Encode unsafe URL characters while preserving URL semantics Parameters: url (str) – URL string that may include unsafe characters such as spaces. Returns: str – URL with path, query, and fragment percent-encoded.