From b4160a73f7c3d1e9e79360bb5a4a860f845c2db7 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 30 Mar 2019 17:21:59 +0100 Subject: [PATCH] Small improvement --- app/src/main/java/eu/faircode/email/HtmlHelper.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index e3248d95cf..a621b9afca 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -243,6 +243,8 @@ public class HtmlHelper { String outer = parent.outerHtml(); parent.tagName("span"); + for (Attribute attr : parent.attributes().asList()) + parent.attributes().remove(attr.getKey()); parent.html(outer); parent.appendChild(div); @@ -252,6 +254,8 @@ public class HtmlHelper { if (!linked) { img.tagName("div"); + for (Attribute attr : img.attributes().asList()) + img.attributes().remove(attr.getKey()); img.html(div.html()); } }