parseHtml function

HtmlDocument parseHtml({
  1. required Window window,
  2. required String content,
  3. String mime = 'text/html',
})

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;
}