mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 22:56:33 +02:00
Allow images in templates
This commit is contained in:
@@ -448,8 +448,9 @@ public class HtmlHelper {
|
||||
.addProtocols("img", "src", "data")
|
||||
.addProtocols("a", "href", "full");
|
||||
if (text_color)
|
||||
whitelist
|
||||
.addAttributes("font", "color");
|
||||
whitelist.addAttributes("font", "color");
|
||||
if (!view)
|
||||
whitelist.addProtocols("img", "src", "content");
|
||||
|
||||
final Document document = new Cleaner(whitelist).clean(parsed);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user