diff --git a/js/dictionaryBuilder.js b/js/dictionaryBuilder.js index 5e9582b..9fa8ad1 100644 --- a/js/dictionaryBuilder.js +++ b/js/dictionaryBuilder.js @@ -69,7 +69,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 { @@ -90,7 +90,7 @@ function AddWord() { } updateConflictText += "
Do you want to update it to what you have set above?"; updateConflictText += ''; updateConflictText += ' '; @@ -230,7 +230,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 }