parseHTML converts a string of HTML to a DOM element using the dart html library.
html
static dom.Element parseHTML(String data) { return htmlparser.parse(data).documentElement!; }