diff options
author | Alexandre Flament <alex@al-f.net> | 2021-03-25 08:31:39 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2021-03-25 08:31:39 +0100 |
commit | fcfcf662ff1fdd70518164124fb591e78eb111a9 (patch) | |
tree | 67272565aae184eaf1dc345dee2c2f2f747fb767 /searx | |
parent | 06b754ad67aa6066aed6df77b5ffb74aabebb040 (diff) | |
download | searxng-fcfcf662ff1fdd70518164124fb591e78eb111a9.tar.gz searxng-fcfcf662ff1fdd70518164124fb591e78eb111a9.zip |
[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']
Diffstat (limited to 'searx')
-rw-r--r-- | searx/engines/wikipedia.py | 2 |
1 files changed, 1 insertions, 1 deletions
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}) |