[−][src]Macro format_xml::escape
Formats the arguments while escaping &<>"'
with their equivalent entities.
Accepts an expression or a string template.
Examples
assert_eq!( escape!({"Friday"} "'s the " {13} "th").to_string(), "Friday's the 13th"); assert_eq!( escape!("<script>alert(" {42;#x} ")</script>").to_string(), "<script>alert(0x2a)</script>");