Skip to main content

parse_hyperlink

Function parse_hyperlink 

Source
pub fn parse_hyperlink(body: &[u8]) -> Option<(&str, &str)>
Expand description

Parse an OSC 8 body into (params, url).

body must exclude the OSC introducer and terminator, start with 8;, and contain the separator between params and URL. The URL may contain additional semicolons; only the first semicolon after 8; separates params from URL. Returns None for malformed or non-UTF-8 bodies.