diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-01-02 03:38:53 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-01-02 03:38:53 +0100 |
commit | f317303d77b519bb5d7e13db6247c1cf3ae0a5ae (patch) | |
tree | d2aaeb2721da89e4bdd8478e137e0ae4b9ce1ba9 | |
parent | 0dd5817eecb3a8db9338394e2c164119a92d4dba (diff) |
Exclude only whitespace text tags
-rw-r--r-- | src/HtmlSearch.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/HtmlSearch.c b/src/HtmlSearch.c index cdd4759..f1631a7 100644 --- a/src/HtmlSearch.c +++ b/src/HtmlSearch.c @@ -402,6 +402,9 @@ static int html_parse_callback(HtmlParser *html_parser, HtmlParseType parse_type case HTML_PARSE_TEXT: /* fallthrough */ case HTML_PARSE_JAVASCRIPT_CODE: { + if(html_parser->text_stripped.size == 0) + return 0; + QuickMediaHtmlChildNode *child_node = malloc(sizeof(QuickMediaHtmlChildNode)); if(!child_node) return 1; |