mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03: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'
|
'colspan', 'rowspan', 'headers'
|
||||||
],
|
],
|
||||||
disallowedTags = [
|
disallowedTags = [
|
||||||
'SVG','SCRIPT','TITLE','LINK','BASE','META',
|
'SCRIPT','TITLE','LINK','BASE','META',
|
||||||
'INPUT','OUTPUT','SELECT','BUTTON','TEXTAREA',
|
'INPUT','OUTPUT','SELECT','BUTTON','TEXTAREA',
|
||||||
'BGSOUND','KEYGEN','SOURCE','OBJECT','EMBED','APPLET','IFRAME','FRAME','FRAMESET','VIDEO','AUDIO','AREA','MAP'
|
'BGSOUND','KEYGEN','SOURCE','OBJECT','EMBED','APPLET','IFRAME','FRAME','FRAMESET','VIDEO','AUDIO','AREA','MAP'
|
||||||
// Not supported by <template> element
|
// Not supported by <template> element
|
||||||
|
|
@ -279,6 +279,9 @@ export const
|
||||||
nodeIterator.referenceNode.remove();
|
nodeIterator.referenceNode.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://github.com/the-djmaze/snappymail/issues/972
|
||||||
|
tpl.content.querySelectorAll('SVG').forEach(oElement => oElement.remove());
|
||||||
|
|
||||||
if (0 < bqLevel) {
|
if (0 < bqLevel) {
|
||||||
tpl.content.querySelectorAll(new Array(1 + bqLevel).fill('blockquote').join(' ')).forEach(node => node.remove());
|
tpl.content.querySelectorAll(new Array(1 + bqLevel).fill('blockquote').join(' ')).forEach(node => node.remove());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue