diff --git a/app/static/js/highlight.js b/app/static/js/highlight.js index 2e0d84a..0327f8c 100644 --- a/app/static/js/highlight.js +++ b/app/static/js/highlight.js @@ -39,9 +39,6 @@ function highLight() { var list2 = sel_word2.value.split(" "); for (var i = 0; i < list2.length; ++i) { list2[i] = list2[i].replace(/(^\s*)|(\s*$)/g, ""); - if (list2[i] != "" && "".indexOf(list2[i]) == -1 && "".indexOf(list2[i]) == -1) { - txt = txt.replace(new RegExp(list2[i], "g"), "" + list2[i] + ""); - } } } document.getElementById("article").innerHTML = txt;