pub fn parse_bytes_with_dtd(
input: &[u8],
opts: &ParseOptions,
) -> Result<(Document, Dtd)>Expand description
Variant of parse_bytes that also returns the DTD captured from
the internal subset. Returns an empty Dtd
when the document had no <!DOCTYPE … [ … ]> or no
<!ELEMENT> / <!ATTLIST> declarations.