mirror of https://github.com/M66B/FairEmail.git
Small improvement
This commit is contained in:
parent
cce3e83ff8
commit
b4160a73f7
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue