From 1fa1077bb219c6efc6904dd97b11a601264267e3 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Wed, 21 Mar 2018 17:35:39 +0100 Subject: [PATCH] Fix normalizer --- plugins/talk-plugin-rich-text/client/utils.js | 10 ---------- 1 file changed, 10 deletions(-) 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; }