@@ -752,9 +752,9 @@ impl<'a> BytesText<'a> {
752752 /// Searches for '&' into content and try to escape the coded character if possible
753753 /// returns Malformed error with index within element if '&' is not followed by ';'
754754 ///
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 )
758758 }
759759
760760 /// gets escaped content with custom entities
@@ -767,8 +767,8 @@ impl<'a> BytesText<'a> {
767767 ///
768768 /// The implementation of `resolve_entity` is expected to operate over UTF-8 inputs.
769769 ///
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 > (
772772 & ' s self ,
773773 resolve_entity : impl Fn ( & [ u8 ] ) -> Option < & ' entity str > ,
774774 ) -> Result < Cow < ' s , [ u8 ] > > {
@@ -807,7 +807,7 @@ impl<'a> BytesText<'a> {
807807 }
808808
809809 /// Gets escaped content.
810- pub fn escaped ( & self ) -> & [ u8 ] {
810+ pub fn escape ( & self ) -> & [ u8 ] {
811811 self . content . as_ref ( )
812812 }
813813}
0 commit comments