From 92b047893d890f860bbe60c45110062b79779650 Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Tue, 10 Nov 2015 14:51:36 -0700 Subject: [PATCH] Fixed some apostrophe problems. --- js/dictionaryBuilder.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }