parseStringNodes static method

List<DOMNode>? parseStringNodes(
  1. String s
)

Implementation

static List<DOMNode>? parseStringNodes(String s) {
  if (hasHTMLEntity(s) || hasHTMLTag(s)) {
    return parseHTML(s);
  } else if (s.isNotEmpty) {
    return <DOMNode>[TextNode.toTextNode(s)];
  } else {
    return null;
  }
}