parseHtml function
Implementation
HtmlDocument parseHtml({
required Window window,
required String content,
String mime = 'text/html',
}) {
final task = _HtmlParser(
window: window,
type: _HtmlParser._typeHtml,
mime: mime,
);
final node = task._newNodeFrom(window.document, html_parsing.parse(content));
return node as HtmlDocument;
}