Skip to content

Commit

Permalink
[fix] html.unescape stract autocomplete suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
allendema authored and return42 committed Jul 2, 2024
1 parent 39aaac4 commit 54be8f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion searx/autocomplete.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# pylint: disable=use-dict-literal

import json
import html
from urllib.parse import urlencode, quote_plus

import lxml
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 54be8f0

Please sign in to comment.