Código:
tienen idea que puede estar sucediendo?jQuery.fn.highlight = function (str, className) { var regex = new RegExp(str, "g"); return this.each(function () { //this.innerHTML = this.innerHTML.replace(regex, "<span class=\"" + className + "\">" + str + "</span>"); $(this).html($(this).html().replace(regex, "<span class=\"" + className + "\">" + str + "</span>")); }); };
Saludos