Skip to content

Commit 64ecd69

Browse files
committed
Fix Attribute::unescape_value does not unescape predefined entities since tafia#739
1 parent 84a47d2 commit 64ecd69

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
As a result, the following variants of `quick_xml::escape::EscapeError` are removed:
2727
- `TooLongDecimal`
2828
- `TooLongHexadecimal`
29+
- [#771]: Fixed `Attribute::unescape_value` which does not unescape predefined values since 0.32.0.
2930

3031
### Misc Changes
3132

src/events/attributes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl<'a> Attribute<'a> {
4545
/// [`encoding`]: ../../index.html#encoding
4646
#[cfg(any(doc, not(feature = "encoding")))]
4747
pub fn unescape_value(&self) -> XmlResult<Cow<'a, str>> {
48-
self.unescape_value_with(|_| None)
48+
self.unescape_value_with(resolve_predefined_entity)
4949
}
5050

5151
/// Decodes using UTF-8 then unescapes the value, using custom entities.

0 commit comments

Comments
 (0)