summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBnyro <bnyro@tutanota.com>2026-08-03 17:55:48 +0200
committerBnyro <bnyro@tutanota.com>2026-08-03 19:17:57 +0200
commitaa059419ff027cb23be88ffa3b080a41e386fa95 (patch)
treeacff9499f16f08671a382b397ce1ffeb32b04b1d
parent0734ee6c7168ced321bac5f9ec2ef3fa49aee1d1 (diff)
[fix] autocompleter: suggestions contain HTML escape codes
The results were previously HTML-escaped for some reason. That doesn't really make much sense because they never got unescaped anywhere. For example, `A&B` gets escaped to `A&amp;B` and never unescaped, so the autocompletion frontend shows `A&amp;B`, which isn't user-friendly at all. Also, it doesn't make sense to escape the full JSON instead of only escaping the suggestion texts individually because that makes it even more unclear.
-rwxr-xr-xsearx/webapp.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index ff2f496b5..07ef06078 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -851,7 +851,6 @@ def autocompleter():
suggestions = json.dumps([sug_prefix, results, [], [], relevances])
mimetype = 'application/x-suggestions+json'
- suggestions = escape(suggestions, False)
return Response(suggestions, mimetype=mimetype)