parseStringNodes static method
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;
}
}