aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/api/encoding.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/api/encoding.rs b/src/api/encoding.rs
index 63c5dee2..934a827c 100644
--- a/src/api/encoding.rs
+++ b/src/api/encoding.rs
@@ -5,6 +5,7 @@ pub fn xml_escape(s: &str) -> String {
s.replace("<", "&lt;")
.replace(">", "&gt;")
.replace("\"", "&quot;")
+ .replace("&", "&amp;")
}
/// Encode &str for use in a URI