File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 15
15
16
16
### New Features
17
17
18
+ - [ #857 ] : Add ` BytesCData::decode() ` .
19
+
18
20
### Bug Fixes
19
21
20
22
### Misc Changes
21
23
24
+ [ #857 ] : https://github.com/tafia/quick-xml/pull/857
25
+
22
26
23
27
## 0.37.4 -- 2025-04-01
24
28
Original file line number Diff line number Diff line change @@ -843,8 +843,13 @@ impl<'a> BytesCData<'a> {
843
843
) )
844
844
}
845
845
846
- /// Gets content of this text buffer in the specified encoding
847
- pub ( crate ) fn decode ( & self ) -> Result < Cow < ' a , str > , EncodingError > {
846
+ /// Decodes the raw input byte content of the CDATA section into a string,
847
+ /// without performing XML entity escaping.
848
+ ///
849
+ /// When this event produced by the XML reader, it uses the encoding information
850
+ /// associated with that reader to interpret the raw bytes contained within this
851
+ /// CDATA event.
852
+ pub fn decode ( & self ) -> Result < Cow < ' a , str > , EncodingError > {
848
853
Ok ( self . decoder . decode_cow ( & self . content ) ?)
849
854
}
850
855
}
You can’t perform that action at this time.
0 commit comments