xml-builder 0.5.2

Easy and highly-configurable XML builder/writer
Documentation
1
2
3
4
5
6
7
8
9
pub fn escape_str(input: &str) -> String {
    input
        .to_owned()
        .replace('&', "&")
        .replace('"', """)
        .replace('\'', "'")
        .replace('<', "&lt;")
        .replace('>', "&gt;")
}