Skip to main content

decode_xml_bounded

Function decode_xml_bounded 

Source
pub fn decode_xml_bounded<'a>(
    bytes: &'a [u8],
    explicit_encoding: Option<&str>,
    maximum_decoded_bytes: usize,
) -> Result<Cow<'a, str>, Error>
Expand description

Decode XML while preventing either the transcoded or normalized UTF-8 representation from growing beyond maximum_decoded_bytes.