Function html2pango::markup_links
source · pub fn markup_links(s: &str) -> String
Expand description
Replaces URIs by HTML link tags.
This function assumes that HTML entities in input string have been escaped (see also:
html_escape
). It will leave URIs in already existing links alone.
Examples
let m = markup_links("go to https://gnome.org");
assert_eq!(m, "go to <a href=\"https://gnome.org\">https://gnome.org</a>");