From 428cda40d32b659c4aba4ac3af46314c8f171bb5 Mon Sep 17 00:00:00 2001 From: Arzumify Date: Tue, 30 Jul 2024 10:31:02 +0100 Subject: [PATCH] Fixed issue with newlines not being migrated from the older format --- static/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/main.js b/static/js/main.js index 7ffd752..86d770a 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -689,7 +689,7 @@ document.addEventListener("DOMContentLoaded", function() { console.log(htmlNote) let cleanedHTML = htmlNote.replace(/<(?!\/?(h1|h2|br|img|blockquote|ol|li|b|i|u|strike|p|pre|ul|hr|a)\b)[^>]*>/gi, '(potential XSS tag was here)') - noteBox.innerHTML = cleanedHTML.replace("\n", "
") + noteBox.innerHTML = cleanedHTML.replaceAll("\n", "
") updateWordCount()