toPlainText method

String toPlainText()

Convert the entire page content to clean plain text

Implementation

String toPlainText() {
  if (_htmlContent == null) {
    throw ScraperNotInitializedException();
  }

  return ContentFormatter.toPlainText(_htmlContent!);
}