mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 19:49:20 +03:00
Improved Composer handling with PGP messages
This commit is contained in:
parent
96de0be977
commit
3fc5216841
5 changed files with 103 additions and 125 deletions
4
dev/External/SquireUI.js
vendored
4
dev/External/SquireUI.js
vendored
|
|
@ -35,7 +35,7 @@ const
|
|||
addLinks: true // allow_smart_html_links
|
||||
*/
|
||||
sanitizeToDOMFragment: (html, isPaste/*, squire*/) => {
|
||||
tpl.innerHTML = html
|
||||
tpl.innerHTML = (html||'')
|
||||
.replace(/<\/?(BODY|HTML)[^>]*>/gi,'')
|
||||
.replace(/<!--[^>]+-->/g,'')
|
||||
.replace(/<span[^>]*>\s*<\/span>/gi,'')
|
||||
|
|
@ -104,7 +104,7 @@ const
|
|||
}
|
||||
|
||||
if (!skipInsert) {
|
||||
signature = (isHtml ? '<br/><br/><signature>' : "\n\n") + signature + (isHtml ? '</signature>' : '');
|
||||
signature = isHtml ? `<p><signature>${signature}</signature></p>` : `\n\n${signature}\n\n`;
|
||||
|
||||
text = insertBefore ? signature + text : text + signature;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue