Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Adguard cannot detect HTML if there is an xml declaration at the document start #1011
According to https://xmlwriter.net/xml_guide/xml_declaration.shtml:
So we can simply check the very first bytes and skip xml declaration if it is present.