pub fn escape_xml(s: &str) -> StringExpand description
Escape special XML characters in text content and attribute values,
replacing &, <, >, ", and ' with their XML entity equivalents.
ยงExamples
use fiscal_core::xml_utils::escape_xml;
assert_eq!(escape_xml("Tom & Jerry <cats>"), "Tom & Jerry <cats>");