lib/textblock.js
function(block) {
  if (block.hasOwnProperty('htmlslabs')) {
    return outputSlabsAsText(block.htmlslabs);
  } else {
    if (block.format === 'section') {
      return block.blocks.reduce(function(previousValue, currentValue, currentIndex, array) {
        return previousValue + extractTextBlockText(currentValue);
      }, '');
    } else {
      return '';
    }
  }
}
function(block) {
  if (block.hasOwnProperty('htmlslabs')) {
    return outputSlabsAsText(block.htmlslabs);
  } else {
    if (block.format === 'section') {
      return block.blocks.reduce(function(previousValue, currentValue, currentIndex, array) {
        return previousValue + extractTextBlockText(currentValue);
      }, '');
    } else {
      return '';
    }
  }
}
function ( block ) { if ( block . hasOwnProperty ( 'htmlslabs' ) ) { return outputSlabsAsText ( block . htmlslabs ) ; } else { if ( block . format === 'section' ) { return block . blocks . reduce ( function ( previousValue , currentValue , currentIndex , array ) { return previousValue + extractTextBlockText ( currentValue ) ; } , '' ) ; } else { return '' ; } } }
Output a text block as plain-text

@param {Object} block The text block to be output
@return {String} the textual content, sans enhancement and HTML
Output a text block as plain - text