isHTML method

bool isHTML(
  1. String input
)

Implementation

bool isHTML(String input) {
  // Simple regex to check for opening and closing HTML tags
  RegExp regExp = RegExp(
    StringConst.IS_HTML_REGEX,
    caseSensitive: false,
    multiLine: true,
  );
  bool ans = regExp.hasMatch(input);
  print("$input :: $ans");
  return ans;
}