Skip to main content

parse_srcset_pick_largest

Function parse_srcset_pick_largest 

Source
pub fn parse_srcset_pick_largest(srcset: &str) -> Option<String>
Expand description

Parse a srcset attribute and return the largest image Example: “small.jpg 300w, medium.jpg 600w, large.jpg 1200w” -> “large.jpg”