mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-11 00:14:50 +03:00
Bugfix: HTMLTemplateElement is not the right tool to modify innerHTML
This commit is contained in:
parent
fb35a17208
commit
3fa55a91d8
1 changed files with 2 additions and 4 deletions
|
|
@ -3,7 +3,7 @@ import { Mime } from 'Common/Mime';
|
|||
|
||||
const
|
||||
doc = document,
|
||||
tpl = doc.createElement('template'),
|
||||
tpl = doc.createElement('div'),
|
||||
isArray = Array.isArray,
|
||||
htmlmap = {
|
||||
'&': '&',
|
||||
|
|
@ -437,9 +437,7 @@ export function htmlToPlain(html) {
|
|||
}
|
||||
}
|
||||
|
||||
text = text.replace(/__bq__start__/gm, '').replace(/__bq__end__/gm, '');
|
||||
|
||||
return text;
|
||||
return text.replace(/__bq__start__/gm, '').replace(/__bq__end__/gm, '');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue