From 7fb4dfbb7089bbb58b8f18d6c5e4db7e72a7bbe0 Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Mon, 9 Nov 2015 15:44:10 -0700 Subject: [PATCH] Un-parse Pronunciation HTML because it's a Markdown field --- index.php | 6 ++++++ js/dictionaryBuilder.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 != "") {