Fixed issue with newlines not being migrated from the older format
This commit is contained in:
parent
fb6ed88584
commit
428cda40d3
|
@ -689,7 +689,7 @@ document.addEventListener("DOMContentLoaded", function() {
|
||||||
|
|
||||||
console.log(htmlNote)
|
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, '(potential XSS tag was here)')
|
||||||
noteBox.innerHTML = cleanedHTML.replace("\n", "<br>")
|
noteBox.innerHTML = cleanedHTML.replaceAll("\n", "<br>")
|
||||||
|
|
||||||
updateWordCount()
|
updateWordCount()
|
||||||
|
|
||||||
|
|
Reference in New Issue