diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/api/encoding.rs | 1 |
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("<", "<") .replace(">", ">") .replace("\"", """) + .replace("&", "&") } /// Encode &str for use in a URI |