Fix #59 (& issue)
This commit is contained in:
parent
e01f74e763
commit
642186c530
@ -2,7 +2,8 @@
|
||||
|
||||
/// Escape &str for xml inclusion
|
||||
pub fn xml_escape(s: &str) -> String {
|
||||
s.replace("<", "<")
|
||||
s.replace("&", "&")
|
||||
.replace("<", "<")
|
||||
.replace(">", ">")
|
||||
.replace("\"", """)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user