Cleanup \MailSo\Base\HtmlUtils::BuildHtml()

This commit is contained in:
the-djmaze 2022-03-03 09:54:39 +01:00
parent eb98c0713a
commit bb7d8e85a0
3 changed files with 62 additions and 199 deletions

View file

@ -42,7 +42,6 @@ const
.replace(/<span[^>]*>\s*<\/span>/gi,'')
.trim();
tpl.querySelectorAll('a:empty,span:empty').forEach(el => el.remove());
tpl.querySelectorAll('[data-x-div-type]').forEach(el => el.replaceWith(getFragmentOfChildren(el)));
if (isPaste) {
tpl.querySelectorAll(removeElements).forEach(el => el.remove());
tpl.querySelectorAll('*').forEach(el => {