diff --git a/index.php b/index.php index 28a06db..ea30ddd 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,9 @@ document.write(localStorage.getItem("dictionary"));'; +} else { ?> @@ -175,6 +179,8 @@ $notificationMessage = get_include_contents('notification.php'); " + ((searchTerm != "" && document.getElementById("searchOptionWord").checked) ? currentDictionary.words[itemIndex].name.replace(searchRegEx, "" + searchTerm + "") : currentDictionary.words[itemIndex].name) + ""; if (currentDictionary.words[itemIndex].pronunciation != "") { - entryText += "" + markdown.toHTML(currentDictionary.words[itemIndex].pronunciation).replace("

","").replace("

","") + "
"; + entryText += "" + markdown.toHTML(htmlEntitiesParse(currentDictionary.words[itemIndex].pronunciation)).replace("

","").replace("

","") + "
"; } if (currentDictionary.words[itemIndex].partOfSpeech != "") {