microformat-shiv.js
function(doc, node, textFormat){
			var out;
			this.textFormat = (textFormat)? textFormat : this.textFormat;
			if(this.textFormat === 'normalised'){
				out = this.walkTreeForText( node );
				if(out !== undefined){
					return this.normalise( doc, out );
				}else{
					return '';
				}
			}else{
				var clonedNode = modules.domUtils.clone(node);
				var trimmedNode = modules.domUtils.removeDescendantsByTagName( clonedNode, this.excludeTags );

			   return this.formatText( doc, modules.domUtils.textContent(trimmedNode), this.textFormat );
			}
		}
function(doc, node, textFormat){
			var out;
			this.textFormat = (textFormat)? textFormat : this.textFormat;
			if(this.textFormat === 'normalised'){
				out = this.walkTreeForText( node );
				if(out !== undefined){
					return this.normalise( doc, out );
				}else{
					return '';
				}
			}else{
				var clonedNode = modules.domUtils.clone(node);
				var trimmedNode = modules.domUtils.removeDescendantsByTagName( clonedNode, this.excludeTags );

			   return this.formatText( doc, modules.domUtils.textContent(trimmedNode), this.textFormat );
			}
		}
function ( doc , node , textFormat ) { var out ; this . textFormat = ( textFormat ) ? textFormat : this . textFormat ; if ( this . textFormat === 'normalised' ) { out = this . walkTreeForText ( node ) ; if ( out !== undefined ) { return this . normalise ( doc , out ) ; } else { return '' ; } } else { var clonedNode = modules . domUtils . clone ( node ) ; var trimmedNode = modules . domUtils . removeDescendantsByTagName ( clonedNode , this . excludeTags ) ; return this . formatText ( doc , modules . domUtils . textContent ( trimmedNode ) , this . textFormat ) ; } }
parses the text from the DOM Node

@param  {DOM Node} node
@param  {String} textFormat
@return {String}
parses the text from the DOM Node