Fixed empty link anchors

pull/178/head
M66B 5 years ago
parent 8e7015e14d
commit c652c5690c

@ -1934,7 +1934,8 @@ public class HtmlHelper {
switch (element.tagName()) { switch (element.tagName()) {
case "a": case "a":
String href = element.attr("href"); String href = element.attr("href");
ssb.setSpan(new URLSpan(href), start, ssb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); if (!TextUtils.isEmpty(href))
ssb.setSpan(new URLSpan(href), start, ssb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
break; break;
case "body": case "body":
// Do nothing // Do nothing

Loading…
Cancel
Save