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