Object item = childrenIt.next();
if (item != null) {
if (item instanceof List) {
nodesToText((List) item, resultBuffer);
} else if (item instanceof EndTagToken) {
EndTagToken node = (EndTagToken) item;
if (node.getName().equals("br")) {
resultBuffer.append("\\\\\n");
} else if (node.getName().equals("hr")) {
resultBuffer.append("\n----\n");
}
} else if (item instanceof BaseToken) {
nodeToWiki((BaseToken) item, resultBuffer);
}