Skip to main content

encode_with

Function encode_with 

Source
pub fn encode_with(url: &str, text: &str, policy: LinkPolicy) -> String
Expand description

Wrap text in an OSC 8 hyperlink to url under policy, or return text unchanged when url is not a valid, safe target for that policy. Pure and allocation-only — no I/O.