diff options
author | Allen <64094914+allendema@users.noreply.github.com> | 2024-07-01 16:45:20 +0000 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-07-02 18:16:46 +0200 |
commit | 54be8f09a62bd850017d661d2968ca012fc9c7a2 (patch) | |
tree | 96d4dab5ad4791fb3890ec522cb4ab224c8b3645 /searx/autocomplete.py | |
parent | 39aaac40d63d53555b7fc12d56f0825c85ecf567 (diff) | |
download | searxng-54be8f09a62bd850017d661d2968ca012fc9c7a2.tar.gz searxng-54be8f09a62bd850017d661d2968ca012fc9c7a2.zip |
[fix] html.unescape stract autocomplete suggestions
Diffstat (limited to 'searx/autocomplete.py')
-rw-r--r-- | searx/autocomplete.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/autocomplete.py b/searx/autocomplete.py index e277c6631..09589cf1f 100644 --- a/searx/autocomplete.py +++ b/searx/autocomplete.py @@ -5,6 +5,7 @@ # pylint: disable=use-dict-literal import json +import html from urllib.parse import urlencode, quote_plus import lxml @@ -162,7 +163,7 @@ def stract(query, _lang): if not resp.ok: return [] - return [suggestion['raw'] for suggestion in resp.json()] + return [html.unescape(suggestion['raw']) for suggestion in resp.json()] def startpage(query, sxng_locale): |