Skip to main content

parse_url

Function parse_url 

Source
pub fn parse_url(
    ctx: &str,
    name: &str,
    value: &str,
) -> Result<Option<String>, ParseError>
Expand description

The path inside a CSS url(...), or None when value is not a url() at all. The path may be double-quoted, single-quoted, or bare; an empty one is an error.