export function switchStringToHtml(inputStr) { let res = inputStr.replace(new RegExp("\n", "gm"), "<br />"); res = res.replace(new RegExp("\r", "gm"), "<br />"); return res; }