[][src]Function html2pango::markup_from_raw

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&lt;f;</i></b>");

let m = markup_from_raw("this is <span>parsed</span>");
assert_eq!(&m, "this is &lt;span&gt;parsed&lt;/span&gt;");

let m = markup_from_raw("with links: http://gnome.org");
assert_eq!(&m, "with links: <a href=\"http://gnome.org\">http://gnome.org</a>");