removeChildren method
- string tagName
Remove all child nodes with the given tagName
.
Implementation
void removeChildren(string tagName) {
while (hasChildren(tagName)) {
getFirstChild(tagName)!.remove();
}
}
Remove all child nodes with the given tagName
.
void removeChildren(string tagName) {
while (hasChildren(tagName)) {
getFirstChild(tagName)!.remove();
}
}