A link is visible content

pull/174/head
M66B 6 years ago
parent e0e54e654d
commit cf098673b4

@ -743,7 +743,9 @@ public class HtmlHelper {
else if (node instanceof Element) { else if (node instanceof Element) {
Element element = (Element) node; Element element = (Element) node;
if (!element.isBlock() && if (!element.isBlock() &&
(element.hasText() || element.selectFirst("img") != null)) (element.hasText() ||
element.selectFirst("a") != null ||
element.selectFirst("img") != null))
return true; return true;
} }
return false; return false;

Loading…
Cancel
Save