diff --git a/js/mzta-utils.js b/js/mzta-utils.js index 9b6714cc..48b68a4c 100644 --- a/js/mzta-utils.js +++ b/js/mzta-utils.js @@ -192,7 +192,7 @@ export function sanitizeHtml(input) { export function stripHtmlKeepLines(htmlString) { // Replaces
tags with a newline at the beginning // and removes all other HTML tags - return htmlString + return convertBrToNewlines(htmlString) .replace(/
/gi, '') // removes
tags .replace(/<\/p>/gi, '\n') // replaces
tags with newline .replace(/<[^>]*>/g, '') // removes any other HTML tags @@ -203,6 +203,10 @@ export function convertNewlinesToBr(text) { return text.replace(/\n/g, '