dist/hashedit.js
function(el) {

      var text = '';

      for (var i = 0; i < el.childNodes.length; i++) {
          var curNode = el.childNodes[i];
          var whitespace = /^\s*$/;

          if(curNode === undefined) {
            text = "";
            break;
          }

          if (curNode.nodeName === "#text" && !(whitespace.test(curNode.nodeValue))) {
              text = curNode.nodeValue;
              break;
          }
      }

      return text;

    }
function(el) {

      var text = '';

      for (var i = 0; i < el.childNodes.length; i++) {
          var curNode = el.childNodes[i];
          var whitespace = /^\s*$/;

          if(curNode === undefined) {
            text = "";
            break;
          }

          if (curNode.nodeName === "#text" && !(whitespace.test(curNode.nodeValue))) {
              text = curNode.nodeValue;
              break;
          }
      }

      return text;

    }
function ( el ) { var text = '' ; for ( var i = 0 ; i < el . childNodes . length ; i ++ ) { var curNode = el . childNodes [ i ] ; var whitespace = / ^\s*$ / ; if ( curNode === undefined ) { text = "" ; break ; } if ( curNode . nodeName === "#text" && ! ( whitespace . test ( curNode . nodeValue ) ) ) { text = curNode . nodeValue ; break ; } } return text ; }
Returns the value of the text node
Returns the value of the text node