function getText(node) {
            var txt;

            if (node.nodeType === 3) {
                return node.data;