removeAllHtmlTags function

String removeAllHtmlTags(
  1. String htmlText
)

Implementation

String removeAllHtmlTags(String htmlText) {
  return htmlText.replaceAll(
      RegExp(r"<([^>]+?)([^>]*?)>(.*?)<\/\1>",
          caseSensitive: false, multiLine: true),
      "");
}