Crate xmldecl[][src]

xmldecl::parse() extracts an encoding from an ASCII-based bogo-XML declaration in text/html in a WebKit-compatible way.

Functions

parse

Extracts an encoding from an ASCII-based bogo-XML declaration. bytes must the prefix of a text/html resource. If it is longer than 1024 bytes, only the first 1024 bytes are examined.