cleaned up ElementNode.getAsHtml()