Function unescape_all

Source
pub fn unescape_all(str: &str) -> Cow<'_, str>
Expand description

Unescape both entities (&quot; -> ") and backslash escapes (\" -> ").

assert_eq!(unescape_all("&amp;"), "&");
assert_eq!(unescape_all("\\&"), "&");