diff --git a/js/mzta-utils.js b/js/mzta-utils.js index da7c6b94..9b6714cc 100644 --- a/js/mzta-utils.js +++ b/js/mzta-utils.js @@ -199,6 +199,10 @@ export function stripHtmlKeepLines(htmlString) { .trim(); // removes leading/trailing whitespace } +export function convertNewlinesToBr(text) { + return text.replace(/\n/g, '
'); +} + // This method is used to convert the model string id used in the URL // to the model string used in the webpage export function getGPTWebModelString(model) {