gsgdt 0.1.2

Generic Stringly Typed Graph Datatype
Documentation
1
2
3
4
5
6
pub fn escape_html(s: &str) -> String {
    s.replace("&", "&")
        .replace("\"", """)
        .replace("<", "&lt;")
        .replace(">", "&gt;")
}