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