parseString static method

Object? parseString(
  1. String s
)

Implementation

static Object? parseString(String s) {
  if (hasHTMLEntity(s) || hasHTMLTag(s)) {
    return parseHTML(s);
  } else if (s.isNotEmpty) {
    return TextNode.toTextNode(s);
  } else {
    return null;
  }
}