forked from Deuxfleurs/garage
Fix #59 (& issue)
This commit is contained in:
parent
e01f74e763
commit
642186c530
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue