From 4884747508cf310406e458bcff8d72c44fb25005 Mon Sep 17 00:00:00 2001 From: Aadniz <8147434+Aadniz@users.noreply.github.com> Date: Fri, 7 Mar 2025 10:31:58 +0100 Subject: [PATCH] [fix] presearch engine: Title showing html code --- searx/engines/presearch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/searx/engines/presearch.py b/searx/engines/presearch.py index 051138e91..8a2614bb5 100644 --- a/searx/engines/presearch.py +++ b/searx/engines/presearch.py @@ -161,7 +161,7 @@ def parse_search_query(json_results): for item in json_results.get('specialSections', {}).get('topStoriesCompact', {}).get('data', []): result = { 'url': item['link'], - 'title': item['title'], + 'title': html_to_text(item['title']), 'thumbnail': item['image'], 'content': '', 'metadata': item.get('source'), @@ -171,7 +171,7 @@ def parse_search_query(json_results): for item in json_results.get('standardResults', []): result = { 'url': item['link'], - 'title': item['title'], + 'title': html_to_text(item['title']), 'content': html_to_text(item['description']), } results.append(result)