extractText method

TextExtractionResult extractText(
  1. String html, {
  2. TextExtractionOptions options = const TextExtractionOptions(),
})

Extracts clean, readable text from HTML

html is the HTML content to parse options are the text extraction options

Implementation

TextExtractionResult extractText(
  String html, {
  TextExtractionOptions options = const TextExtractionOptions(),
}) {
  return textExtractor.extractText(html, options: options);
}