Function html2pango::markup_from_raw
[−]
[src]
pub fn markup_from_raw(s: &str) -> String
Same as markup
but without sanizing the input.
Examples
let m = markup_from_raw("this is parsed"); assert_eq!(&m, "this is parsed"); let m = markup_from_raw("<b>this <i>is &ssd<f;</i></b>"); assert_eq!(&m, "<b>this <i>is &ssd<f;</i></b>"); let m = markup_from_raw("this is <span>parsed</span>"); assert_eq!(&m, "this is <span>parsed</span>"); let m = markup_from_raw("with links: http://gnome.org"); assert_eq!(&m, "with links: <a href=\"http://gnome.org\">http://gnome.org</a>");