looksLikeHtml static method

bool looksLikeHtml(
  1. String value
)

Best-effort check indicating whether a string likely contains HTML markup.

Implementation

static bool looksLikeHtml(String value) {
  if (value.isEmpty) return false;
  return _htmlSignal.hasMatch(value);
}