Allow text and HTML children
This commit is contained in:
parent
15f7613c65
commit
6d84494965
1 changed files with 5 additions and 5 deletions
|
@ -57,13 +57,13 @@ public class HTMLElement {
|
||||||
if ( text != null ) {
|
if ( text != null ) {
|
||||||
builder.append ( text );
|
builder.append ( text );
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
if ( ! isEmptyElement ) {
|
if ( ! isEmptyElement ) {
|
||||||
for ( HTMLElement child : children ) {
|
for ( HTMLElement child : children ) {
|
||||||
builder.append ( child.generateHTML ( ) );
|
builder.append ( child.generateHTML ( ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
builder.append ( "</" ).append ( tagName ).append ( ">\n" );
|
builder.append ( "</" ).append ( tagName ).append ( ">\n" );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue