Link img source

This commit is contained in:
M66B
2023-03-30 09:16:06 +02:00
parent 60981dc95e
commit bc7ebeb79b

View File

@@ -1434,10 +1434,11 @@ public class HtmlHelper {
alt = context.getString(R.string.title_image_link);
}
if (!TextUtils.isEmpty(alt)) {
Element span = document.createElement("span")
Element a = document.createElement("a")
.attr("href", src)
.text("[" + alt + "]")
.attr("x-font-size-abs", Integer.toString(textSizeSmall));
img.appendChild(span);
img.appendChild(a);
}
} else if (!TextUtils.isEmpty(alt)) {
Element a = document.createElement("a")