From 56363714fb78798e680642c971b05fead90918c1 Mon Sep 17 00:00:00 2001 From: Bastien Orivel Date: Sun, 12 Dec 2021 01:01:29 +0100 Subject: [PATCH] Update quick-xml to 0.22 and bump version --- minidom/Cargo.toml | 4 ++-- minidom/src/element.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/minidom/Cargo.toml b/minidom/Cargo.toml index 9907d4ea..bd951ed6 100644 --- a/minidom/Cargo.toml +++ b/minidom/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "minidom" -version = "0.13.0" +version = "0.14.0" authors = [ "lumi ", "Emmanuel Gil Peyrot ", @@ -21,4 +21,4 @@ edition = "2018" gitlab = { repository = "xmpp-rs/xmpp-rs" } [dependencies] -quick-xml = "0.20" +quick-xml = "0.22.0" diff --git a/minidom/src/element.rs b/minidom/src/element.rs index 97b70b60..b04d7527 100644 --- a/minidom/src/element.rs +++ b/minidom/src/element.rs @@ -413,7 +413,7 @@ impl Element { } } Event::CData(s) => { - let text = reader.decode(&s)?.to_owned(); + let text = s.unescape_and_decode(&reader)?; if !text.is_empty() { let current_elem = stack.last_mut().unwrap(); current_elem.append_text_node(text);