parseHtml method

dynamic parseHtml(
  1. String body
)

Implementation

parseHtml(String body) {
  final Document doc = parse(body);

  siteName = getOGTag(doc, 'og:site_name');
  title = getOGTag(doc, 'og:title') ?? getTag(doc, 'title');
  description = getOGTag(doc, 'og:description') ?? getMeta(doc, 'description');
  image = getOGTag(doc, 'og:image');
}