protected String convertNodeToText(Element element) {
if (element == null)
return "";
final StringBuilder buffer = new StringBuilder();
new NodeTraversor(new NodeVisitor() {
@Override
public void head(Node node, int depth) {
if (node instanceof TextNode) {
TextNode textNode = (TextNode) node;
String text = textNode.text().replace('\u00A0', ' ').trim(); // non breaking space