element
+// ,'HTML','HEAD','BODY'
],
nonEmptyTags = [
'A','B','EM','I','SPAN','STRONG'
@@ -172,11 +171,11 @@ export const
tpl.innerHTML = html
// .replace(/]*>[\s\S]*?<\/pre>/gi, pre => pre.replace(/\n/g, '\n
'))
- .replace(/]*>/gi, '')
- .replace(/<\?xml[^>]*\?>/gi, '')
// Not supported by element
+// .replace(/]*>/gi, '')
+// .replace(/<\?xml[^>]*\?>/gi, '')
.replace(/<(\/?)body(\s[^>]*)?>/gi, '<$1div class="mail-body"$2>')
- .replace(/<\/?(html|head)[^>]*>/gi, '')
+// .replace(/<\/?(html|head)[^>]*>/gi, '')
// Fix Reddit https://github.com/the-djmaze/snappymail/issues/540
.replace(//, '')
// https://github.com/the-djmaze/snappymail/issues/900
@@ -287,6 +286,7 @@ export const
// setAttribute('rel', 'external nofollow noopener noreferrer');
}
setAttribute('tabindex', '-1');
+ aColor && !oElement.style.color && (oElement.style.color = aColor);
}
// if (['CENTER','FORM'].includes(name)) {