diff --git a/public/js/script.js b/public/js/script.js index 1c127e6ed..bf1a628ae 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -925,7 +925,7 @@ function compareInput(showError) { correctedHistory.push(currentCorrected); document .querySelector("#words .word.active") - .setAttribute("input", currentInput); + .setAttribute("input", currentInput.replace(/'/g, "\'")); showResult(true); } let testNow = Date.now(); @@ -3009,12 +3009,12 @@ async function loadWordsHistory() { try { if (input === "") throw Exception; if (correctedHistory[i] !== "") { - wordEl = `