export function htmlNormalizer(htmlInput) { let str = htmlInput; // We are normalizing the input from contenteditable of each browser, also removing unnecesary html tags // https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Editable_content#Differences_in_markup_generation // Old browsers uses `p` normalize to `div` instead. str = str .replace(/
/g, '
instead of
instead of