Allow images in templates

This commit is contained in:
M66B
2020-04-27 09:40:43 +02:00
parent 93541c7823
commit 304ed90fe0
4 changed files with 65 additions and 6 deletions

View File

@@ -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);