Check for visible images and links with content

pull/185/head
M66B 4 years ago
parent 5da1b188f3
commit 68b264646f

@ -1312,8 +1312,8 @@ public class HtmlHelper {
Element element = (Element) node; Element element = (Element) node;
if (!element.isBlock() && if (!element.isBlock() &&
(element.hasText() || (element.hasText() ||
element.selectFirst("a") != null || element.selectFirst("a[href~=.+]") != null ||
element.selectFirst("img") != null)) element.selectFirst("img[src~=.+]") != null))
return true; return true;
} }
return false; return false;

Loading…
Cancel
Save