fixed word input after evaluating html. closes #1348

This commit is contained in:
Miodec 2021-05-09 14:29:51 +01:00
parent 051be46e22
commit ed8e34a305

View file

@ -822,7 +822,9 @@ $(document).on("mouseenter", "#resultWordsHistory .words .word", (e) => {
$(e.currentTarget).append(
`<div class="wordInputAfter">${input
.replace(/\t/g, "_")
.replace(/\n/g, "_")}</div>`
.replace(/\n/g, "_")
.replace(/</g, "&lt")
.replace(/>/g, "&gt")}</div>`
);
}
});