From 642186c53051b9edf8a23073a7fd17d7d7e2b819 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 27 Apr 2021 23:10:43 +0200 Subject: Fix #59 (& issue) --- src/api/encoding.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/api/encoding.rs b/src/api/encoding.rs index 63c5dee2..b3fbbe34 100644 --- a/src/api/encoding.rs +++ b/src/api/encoding.rs @@ -2,7 +2,8 @@ /// Escape &str for xml inclusion pub fn xml_escape(s: &str) -> String { - s.replace("<", "<") + s.replace("&", "&") + .replace("<", "<") .replace(">", ">") .replace("\"", """) } -- cgit v1.2.3