Fixed displaying inline images

pull/153/head
M66B 6 years ago
parent b0bac1ed77
commit 10edc5a6cd

@ -207,14 +207,15 @@ public class HtmlHelper {
}
if (linked)
div.appendChild(img);
div.appendChild(img.clone());
else {
Element a = document.createElement("a");
a.attr("href", uri.toString());
a.appendChild(img.clone());
div.appendChild(a);
}
}
} else
div.appendChild(img.clone());
if (!TextUtils.isEmpty(alt)) {
div.appendElement("br");

Loading…
Cancel
Save