Update quick-xml to 0.22 and bump version

This commit is contained in:
Bastien Orivel 2021-12-12 01:01:29 +01:00 committed by Link Mauve
commit 56363714fb
2 changed files with 3 additions and 3 deletions

View file

@ -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);