From 067f33236f54f6b1e28e6f1d99708cd3d651f96e Mon Sep 17 00:00:00 2001 From: Tom Bruyneel Date: Tue, 26 Mar 2024 13:38:22 +0100 Subject: [PATCH] Don't chunk style tags --- .../Jobs/WebsitePageIndexingJob.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backoffice/ConversationalSearchPlatform.BackOffice/Jobs/WebsitePageIndexingJob.cs b/src/backoffice/ConversationalSearchPlatform.BackOffice/Jobs/WebsitePageIndexingJob.cs index 8303609..4eae99c 100644 --- a/src/backoffice/ConversationalSearchPlatform.BackOffice/Jobs/WebsitePageIndexingJob.cs +++ b/src/backoffice/ConversationalSearchPlatform.BackOffice/Jobs/WebsitePageIndexingJob.cs @@ -521,7 +521,7 @@ private List ChunkGenericHtmlPage(HtmlDocument htmlDocument, string xpat { foreach (var node in nodes) { - if (node.ParentNode.Name == "option" || node.ParentNode.Name == "label" || node.ParentNode.Name == "script") + if (node.ParentNode.Name == "option" || node.ParentNode.Name == "label" || node.ParentNode.Name == "script" || node.ParentNode.Name == "style") { continue; }