mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-24 23:08:08 +08:00
Bugfix: keep A elements when there is an image inside
This commit is contained in:
parent
ea4f678d05
commit
a80161a316
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ export const
|
|||
}
|
||||
// if (['CENTER','FORM'].includes(name)) {
|
||||
if ('FORM' === name || 'O:P' === name || (nonEmptyTags.includes(name) && ('' == oElement.textContent.trim()))) {
|
||||
replaceWithChildren(oElement);
|
||||
('A' !== name || !oElement.querySelector('IMG')) && replaceWithChildren(oElement);
|
||||
return;
|
||||
}
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue