pub fn partial_escape(raw: &[u8]) -> Cow<'_, [u8]>
Expand description

Should only be used for escaping text content. In xml text content, it is allowed (though not recommended) to leave the quote special characters “ and ’ unescaped. This function escapes a &[u8] and replaces xml special characters (<, >, &) with their corresponding xml escaped value, but does not escape quote characters.