From fcfcf662ff1fdd70518164124fb591e78eb111a9 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Thu, 25 Mar 2021 08:31:39 +0100 Subject: [PATCH] [fix] wikipedia: remove HTML from the title fr.wikipedia.org (and it seems not other wikipedia websites), adds HTML to api_result['displayTitle']. (Search for '!wp :fr Braid' for example) The commit uses api_result['title'] --- searx/engines/wikipedia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/wikipedia.py b/searx/engines/wikipedia.py index da867c81e..3ad8748fb 100644 --- a/searx/engines/wikipedia.py +++ b/searx/engines/wikipedia.py @@ -76,7 +76,7 @@ def response(resp): if api_result.get('type') != 'standard': return [] - title = api_result['displaytitle'] + title = api_result['title'] wikipedia_link = api_result['content_urls']['desktop']['page'] results.append({'url': wikipedia_link, 'title': title})