A link is visible content

This commit is contained in:
M66B 2020-02-04 11:33:08 +01:00
parent e0e54e654d
commit cf098673b4
1 changed files with 3 additions and 1 deletions

View File

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