|
@@ -5,6 +5,7 @@
|
|
# pylint: disable=use-dict-literal
|
|
# pylint: disable=use-dict-literal
|
|
|
|
|
|
import json
|
|
import json
|
|
|
|
+import html
|
|
from urllib.parse import urlencode, quote_plus
|
|
from urllib.parse import urlencode, quote_plus
|
|
|
|
|
|
import lxml
|
|
import lxml
|
|
@@ -162,7 +163,7 @@ def stract(query, _lang):
|
|
if not resp.ok:
|
|
if not resp.ok:
|
|
return []
|
|
return []
|
|
|
|
|
|
- return [suggestion['raw'] for suggestion in resp.json()]
|
|
|
|
|
|
+ return [html.unescape(suggestion['raw']) for suggestion in resp.json()]
|
|
|
|
|
|
|
|
|
|
def startpage(query, sxng_locale):
|
|
def startpage(query, sxng_locale):
|