diff --git a/dev/Common/Html.js b/dev/Common/Html.js index a51b0747e..ae68956ba 100644 --- a/dev/Common/Html.js +++ b/dev/Common/Html.js @@ -265,8 +265,6 @@ export const } tmpl.innerHTML = html - // Strip Microsoft comments - .replace(//gi, '') // .replace(/
]*>[\s\S]*?<\/pre>/gi, pre => pre.replace(/\n/g, '\n
')) // Not supported by element // .replace(/]*>/gi, '') @@ -280,8 +278,7 @@ export const .trim(); html = ''; - // \MailSo\Base\HtmlUtils::ClearComments() - // https://github.com/the-djmaze/snappymail/issues/187 + // Strip all comments const nodeIterator = document.createNodeIterator(tmpl.content, NodeFilter.SHOW_COMMENT); while (nodeIterator.nextNode()) { nodeIterator.referenceNode.remove();