diff --git a/plugins/talk-plugin-rich-text/client/utils.js b/plugins/talk-plugin-rich-text/client/utils.js index a617d618e..4f49b3654 100644 --- a/plugins/talk-plugin-rich-text/client/utils.js +++ b/plugins/talk-plugin-rich-text/client/utils.js @@ -17,15 +17,5 @@ export function htmlNormalizer(htmlInput) { str = str .replace(//g, '') // IE .replace(/<\/em>/g, ''); // IE - - // Remove first opening tag, otherwise - // with the following transformation below - // we might add an unintended first empty line. - if (str.startsWith('
')) { - str = str.replace('
', ''); - } - - // Normalize
s to
. - // return str.replace(/
/g, '
').replace(/<\/div>/g, ''); return str; }