parseHtmlDocument function

HtmlDocument parseHtmlDocument(
  1. String content, {
  2. Window? window,
})

Parses a HtmlDocument.

import 'package:universal_html/parsing.dart';

void main() {
  final document = parseHtmlDocument('<html>...</html>');
}

Implementation

HtmlDocument parseHtmlDocument(
  String content, {
  Window? window,
}) {
  window ??= universal_html.window;
  return impl.parseHtmlDocument(
    window: window,
    content: content,
  );
}