from static method
Returns the first DTD Entity found in string
.
string
must not be null
.
If trimWhitespace
is true
, unnecessary whitespace between nodes
will be removed and all remaining whitespace will be replaced with
a single space. trimWhitespace
must not be null
.
Returns null
if no valid DTD entities are found.
Implementation
static XmlEntity? from(
String string, {
bool trimWhitespace = true,
}) {
return StringParser.from<XmlEntity>(
input: string,
delimiter: Delimiters.entity,
getNode: _getEntity,
trimWhitespace: trimWhitespace,
);
}