File tree Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,9 @@ public function beforeSendPerformed(\Swift_Events_SendEvent $evt)
14
14
$ message = $ evt ->getMessage ();
15
15
16
16
$ converter = new CssToInlineStyles ();
17
- $ converter ->setEncoding ($ message ->getCharset ());
18
17
$ converter ->setUseInlineStylesBlock ();
18
+ $ converter ->setStripOriginalStyleTags ();
19
+
19
20
$ converter ->setCleanup ();
20
21
21
22
if ($ message ->getContentType () === 'text/html ' ||
Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
2
- <html><head><style>
3
- .block {
4
- width: 100px;
5
- height: 20px;
6
- }
7
- div.block ul li.small {
8
- margin: 10px;
9
- }
10
- </style></head><body>
11
- <div style="height: 20px; width: 100px;">
2
+ <html><head><style></style></head><body>
3
+ <div style="height: 20px; width: 100px;">
12
4
text
13
5
14
6
<ul><li>
15
7
Big list
16
8
</li>
17
- <li style="margin: 10px;">
9
+ <li style="margin: 10px;">
18
10
Small list
19
11
</li>
20
12
</ul></div>
You can’t perform that action at this time.
0 commit comments