mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-31 03:52:01 +08:00
Resolve #972
This commit is contained in:
parent
e4e12bdaa9
commit
a9eff27f99
1 changed files with 4 additions and 1 deletions
|
@ -240,7 +240,7 @@ export const
|
|||
'colspan', 'rowspan', 'headers'
|
||||
],
|
||||
disallowedTags = [
|
||||
'SVG','SCRIPT','TITLE','LINK','BASE','META',
|
||||
'SCRIPT','TITLE','LINK','BASE','META',
|
||||
'INPUT','OUTPUT','SELECT','BUTTON','TEXTAREA',
|
||||
'BGSOUND','KEYGEN','SOURCE','OBJECT','EMBED','APPLET','IFRAME','FRAME','FRAMESET','VIDEO','AUDIO','AREA','MAP'
|
||||
// Not supported by <template> element
|
||||
|
@ -279,6 +279,9 @@ export const
|
|||
nodeIterator.referenceNode.remove();
|
||||
}
|
||||
|
||||
// https://github.com/the-djmaze/snappymail/issues/972
|
||||
tpl.content.querySelectorAll('SVG').forEach(oElement => oElement.remove());
|
||||
|
||||
if (0 < bqLevel) {
|
||||
tpl.content.querySelectorAll(new Array(1 + bqLevel).fill('blockquote').join(' ')).forEach(node => node.remove());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue