diff --git a/static/js/main.js b/static/js/main.js index 77657d0..841b51e 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -667,7 +667,7 @@ document.addEventListener("DOMContentLoaded", async 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)') + let cleanedHTML = htmlNote.replace(/<(?!\/?(h1|h2|br|img|blockquote|ol|li|b|i|u|strike|p|pre|ul|hr|a)\b)[^>]*>/gi, '') noteBox.innerHTML = cleanedHTML.replaceAll("\n", "
") updateWordCount()