mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03: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 {
|
do {
|
||||||
l = html.length;
|
l = html.length;
|
||||||
html = html
|
html = html
|
||||||
.replace(/(<[^>]+)[;"']\s*background(-[a-z]+)?\s*:[^;"']+/gi, '$1')
|
.replace(/(<[^>]+[;"'])\s*background(-[a-z]+)?\s*:[^;"']+/gi, '$1')
|
||||||
.replace(/(<[^>]+)[;"']\s*color\s*:[^;"']+/gi, '$1')
|
.replace(/(<[^>]+[;"'])\s*color\s*:[^;"']+/gi, '$1')
|
||||||
.replace(/(<[^>]+)\s(bg)?color=("[^"]+"|'[^']+')/gi, '$1');
|
.replace(/(<[^>]+)\s(bg)?color=("[^"]+"|'[^']+')/gi, '$1');
|
||||||
} while (l != html.length)
|
} while (l != html.length)
|
||||||
return html;
|
return html;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue