]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Add visibility test case for html parsing
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 23 Jun 2021 13:02:04 +0000 (14:02 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 23 Jun 2021 13:02:04 +0000 (14:02 +0100)
src/libserver/html/html.cxx

index 2e519e81a814f930314eb9c59a788bd1c99037b7..e427c73bfa22f228efad7ddfbe381bddfbad2e61 100644 (file)
@@ -1836,6 +1836,8 @@ TEST_CASE("html text extraction")
                         "      <br>\n"
                         "      test</div>"
                         "</body>", "\n\n\ntest\n"},
+                       {"<div>fi<span style=\"FONT-SIZE: 0px\">le </span>"
+                        "sh<span style=\"FONT-SIZE: 0px\">aring </span></div>", "fish\n"},
        };
 
        rspamd_url_init(NULL);