mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-09-08 14:14:26 +08:00
Bugfix: removeColors sometimes broke HTML elements
This commit is contained in:
parent
6a454ec624
commit
8b2d183f07
1 changed files with 2 additions and 2 deletions
|
@ -57,8 +57,8 @@ const
|
|||
do {
|
||||
l = html.length;
|
||||
html = html
|
||||
.replace(/(<[^>]+)[;"']\s*background(-[a-z]+)?\s*:[^;"']+/gi, '$1')
|
||||
.replace(/(<[^>]+)[;"']\s*color\s*:[^;"']+/gi, '$1')
|
||||
.replace(/(<[^>]+[;"'])\s*background(-[a-z]+)?\s*:[^;"']+/gi, '$1')
|
||||
.replace(/(<[^>]+[;"'])\s*color\s*:[^;"']+/gi, '$1')
|
||||
.replace(/(<[^>]+)\s(bg)?color=("[^"]+"|'[^']+')/gi, '$1');
|
||||
} while (l != html.length)
|
||||
return html;
|
||||
|
|
Loading…
Add table
Reference in a new issue