function(e, normalizeSpaces) {
    normalizeSpaces = (typeof normalizeSpaces === 'undefined') ? true : normalizeSpaces;
    var textContent = e.textContent.trim();

    if (normalizeSpaces) {
      return textContent.replace(this.REGEXPS.normalize, " ");
    }
    return textContent;
  }
function(e, normalizeSpaces) {
    normalizeSpaces = (typeof normalizeSpaces === 'undefined') ? true : normalizeSpaces;
    var textContent = e.textContent.trim();

    if (normalizeSpaces) {
      return textContent.replace(this.REGEXPS.normalize, " ");
    }
    return textContent;
  }
function ( e , normalizeSpaces ) { normalizeSpaces = ( typeof normalizeSpaces === 'undefined' ) ? true : normalizeSpaces ; var textContent = e . textContent . trim ( ) ; if ( normalizeSpaces ) { return textContent . replace ( this . REGEXPS . normalize , " " ) ; } return textContent ; }
Get the inner text of a node - cross browser compatibly.
This also strips out any excess whitespace to be found.

@param Element
@param Boolean normalizeSpaces (default: true)
@return string
Get the inner text of a node - cross browser compatibly . This also strips out any excess whitespace to be found .
Returns the text content of an element