mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Small improvement
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user