Sanitize EML html

pull/147/head
M66B 6 years ago
parent 48fbfb5842
commit 08b31cabe2

@ -93,7 +93,8 @@ public class ActivityEml extends ActivityBase {
} }
result.parts = Html.fromHtml(sb.toString()); result.parts = Html.fromHtml(sb.toString());
result.body = Html.fromHtml(parts.getHtml(context)); String html = HtmlHelper.sanitize(parts.getHtml(context), true);
result.body = Html.fromHtml(html);
ByteArrayOutputStream bos = new ByteArrayOutputStream(); ByteArrayOutputStream bos = new ByteArrayOutputStream();
mmessage.writeTo(bos); mmessage.writeTo(bos);

Loading…
Cancel
Save