lib/features/search-pad/SearchPad.js
function createHtmlText(tokens) {
  var htmlText = '';

  tokens.forEach(function(t) {
    if (t.matched) {
      htmlText += '<strong class="' + SearchPad.RESULT_HIGHLIGHT_CLASS + '">' + t.matched + '</strong>';
    } else {
      htmlText += t.normal;
    }
  });

  return htmlText !== '' ? htmlText : null;
}
function createHtmlText(tokens) {
  var htmlText = '';

  tokens.forEach(function(t) {
    if (t.matched) {
      htmlText += '<strong class="' + SearchPad.RESULT_HIGHLIGHT_CLASS + '">' + t.matched + '</strong>';
    } else {
      htmlText += t.normal;
    }
  });

  return htmlText !== '' ? htmlText : null;
}
function createHtmlText ( tokens ) { var htmlText = '' ; tokens . forEach ( function ( t ) { if ( t . matched ) { htmlText += '<strong class="' + SearchPad . RESULT_HIGHLIGHT_CLASS + '">' + t . matched + '</strong>' ; } else { htmlText += t . normal ; } } ) ; return htmlText !== '' ? htmlText : null ; }
Create internal HTML markup from result tokens.
Caters for highlighting pattern matched tokens.

@param  {Array<Object>} tokens
@return {String}
Create internal HTML markup from result tokens . Caters for highlighting pattern matched tokens .