tagContent property
String
get
tagContent
If this is a tag, get this tag's content (between the open/close brackets.)
Implementation
String get tagContent {
var a = attributes ?? <String, String>{};
// (tag-name)
var result = name;
// ( key="value"...), escape quotes in value
for (var key in a.keys) {
var value = a[key]!;
if (value == key) {
result += " $key";
} else {
result += ' $key="${quoteAttribute(value)}"';
}
}
return result;
}