dist/toolkit.js
function(item) {
        var terms = this.term.replace(/[\-\[\]\{\}()*+?.,\\^$|#]/g, '\\$&').split(' '),
            options = this.options,
            callback = function(match) {
                return this.render(options.highlightTemplate).html(match).toString();
            }.bind(this);

        for (var i = 0, t; t = terms[i]; i++) {
            item = item.replace(new RegExp(t, 'ig'), callback);
        }

        return item;
    }
function(item) {
        var terms = this.term.replace(/[\-\[\]\{\}()*+?.,\\^$|#]/g, '\\$&').split(' '),
            options = this.options,
            callback = function(match) {
                return this.render(options.highlightTemplate).html(match).toString();
            }.bind(this);

        for (var i = 0, t; t = terms[i]; i++) {
            item = item.replace(new RegExp(t, 'ig'), callback);
        }

        return item;
    }
function ( item ) { var terms = this . term . replace ( / [\-\[\]\{\}()*+?.,\\^$|#] / g , '\\$&' ) . split ( ' ' ) , options = this . options , callback = function ( match ) { return this . render ( options . highlightTemplate ) . html ( match ) . toString ( ) ; } . bind ( this ) ; for ( var i = 0 , t ; t = terms [ i ] ; i ++ ) { item = item . replace ( new RegExp ( t , 'ig' ) , callback ) ; } return item ; }
Highlight the current term within the item string.
Split multi-word terms to highlight separately.

@param {String} item
@returns {String}
Highlight the current term within the item string . Split multi - word terms to highlight separately .