@@ -752,9 +752,9 @@ impl<'a> BytesText<'a> {
752
752
/// Searches for '&' into content and try to escape the coded character if possible
753
753
/// returns Malformed error with index within element if '&' is not followed by ';'
754
754
///
755
- /// See also [`unescaped_with ()`](Self::unescaped_with )
756
- pub fn unescaped ( & self ) -> Result < Cow < [ u8 ] > > {
757
- self . unescaped_with ( |_| None )
755
+ /// See also [`unescape_with ()`](Self::unescape_with )
756
+ pub fn unescape ( & self ) -> Result < Cow < [ u8 ] > > {
757
+ self . unescape_with ( |_| None )
758
758
}
759
759
760
760
/// gets escaped content with custom entities
@@ -767,8 +767,8 @@ impl<'a> BytesText<'a> {
767
767
///
768
768
/// The implementation of `resolve_entity` is expected to operate over UTF-8 inputs.
769
769
///
770
- /// See also [`unescaped ()`](Self::unescaped )
771
- pub fn unescaped_with < ' s , ' entity > (
770
+ /// See also [`unescape ()`](Self::unescape )
771
+ pub fn unescape_with < ' s , ' entity > (
772
772
& ' s self ,
773
773
resolve_entity : impl Fn ( & [ u8 ] ) -> Option < & ' entity str > ,
774
774
) -> Result < Cow < ' s , [ u8 ] > > {
@@ -807,7 +807,7 @@ impl<'a> BytesText<'a> {
807
807
}
808
808
809
809
/// Gets escaped content.
810
- pub fn escaped ( & self ) -> & [ u8 ] {
810
+ pub fn escape ( & self ) -> & [ u8 ] {
811
811
self . content . as_ref ( )
812
812
}
813
813
}
0 commit comments