From 0cfed94b08ad6c767dceab89b36a62fc9785a534 Mon Sep 17 00:00:00 2001 From: 0xhtml <34682885+0xhtml@users.noreply.github.com> Date: Thu, 1 Aug 2024 16:16:46 +0200 Subject: [PATCH] [fix] engine google: use extract_text everywhere --- searx/engines/google.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/google.py b/searx/engines/google.py index 3eaf1c19d..f9215783c 100644 --- a/searx/engines/google.py +++ b/searx/engines/google.py @@ -338,7 +338,7 @@ def response(resp): bubble.drop_tree() results.append( { - 'answer': item.xpath("normalize-space()"), + 'answer': extract_text(item), 'url': (eval_xpath(item, '../..//a/@href') + [None])[0], } )