toHtml method
serializes the tree back to a HTML string
Implementation
String toHtml() {
String html = startHtmlTag;
for (NodeV2 child in children) {
html += child.toHtml();
}
return html + endHtmlTag;
}
serializes the tree back to a HTML string
String toHtml() {
String html = startHtmlTag;
for (NodeV2 child in children) {
html += child.toHtml();
}
return html + endHtmlTag;
}