diff --git a/app/src/main/java/eu/faircode/email/ActivityEml.java b/app/src/main/java/eu/faircode/email/ActivityEml.java index 122bcf6e64..5a98a8a08f 100644 --- a/app/src/main/java/eu/faircode/email/ActivityEml.java +++ b/app/src/main/java/eu/faircode/email/ActivityEml.java @@ -102,8 +102,8 @@ public class ActivityEml extends ActivityBase { } result.parts = HtmlHelper.fromHtml(sb.toString()); - result.html = HtmlHelper.sanitize(parts.getHtml(context), true); - result.body = HtmlHelper.fromHtml(result.html); + result.html = parts.getHtml(context); + result.body = HtmlHelper.fromHtml(HtmlHelper.sanitize(result.html, true)); ByteArrayOutputStream bos = new ByteArrayOutputStream(); mmessage.writeTo(bos);