Check for visible images and links with content

This commit is contained in:
M66B 2020-09-12 09:04:37 +02:00
parent 5da1b188f3
commit 68b264646f
1 changed files with 2 additions and 2 deletions

View File

@ -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;