Skip to main content

xml_escape

Function xml_escape 

Source
pub fn xml_escape(s: &str) -> String
Expand description

Escape a string for safe embedding in XML content.

Handles the five standard XML entities plus control characters that are invalid in XML 1.0 (everything below U+0020 except \t, \n, \r).