fixes highlighting strings

This commit is contained in:
Seris02
2020-01-31 14:56:28 +08:00
parent 55a0e4e55d
commit a354f8fb66
@@ -229,7 +229,7 @@ function highlightTerms(el) {
console.log(newWord)
}
newText += newWord || words[w].replace("<", "&lt;");
newText += w >= words.length ? '' : ' ';
newText += w >= words.length - 1 ? '' : ' ';
}
} else { //Every other type of element
newText += outerHTML(el.childNodes[c]);