diff --git a/js/dictionaryBuilder.js b/js/dictionaryBuilder.js
index 39c1bed..e256fcf 100644
--- a/js/dictionaryBuilder.js
+++ b/js/dictionaryBuilder.js
@@ -55,7 +55,7 @@ function AddWord() {
updateConflictArea.style.display = "block";
updateConflictArea.innerHTML = "Do you really want to change the word \"" + currentDictionary.words[parseInt(editIndex)].name + "\" to what you have set above?";
updateConflictArea.innerHTML += '';
updateConflictArea.innerHTML += '';
} else {
@@ -76,7 +76,7 @@ function AddWord() {
}
updateConflictText += " Do you want to update it to what you have set above?";
updateConflictText += '';
updateConflictText += ' ';
@@ -216,7 +216,7 @@ function ShowDictionary() {
if (currentDictionary.words.length > 0) {
for (var i = 0; i < currentDictionary.words.length; i++) {
if (filter == "" || (filter != "" && currentDictionary.words[i].partOfSpeech == filter)) {
- if (search == "" || (search != "" && searchResults.indexOf(currentDictionary.words[i].name) >= 0)) {
+ if (search == "" || (search != "" && searchResults.indexOf(htmlEntities(currentDictionary.words[i].name)) >= 0)) {
if (!currentDictionary.words[i].hasOwnProperty("pronunciation")) {
currentDictionary.words[i].pronunciation = ""; //Account for new property
}