﻿(function ($) {
    
    $.fn.highlight = function (str, className) {

        return this.each(function () {
            var re = new RegExp(str, 'i');
            var replace = re.exec(this.innerHTML);
            this.innerHTML = this.innerHTML.replace(re, '<strong>' + replace + '</strong>');
        });

    };

})(jQuery);

