From aa059419ff027cb23be88ffa3b080a41e386fa95 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Mon, 3 Aug 2026 17:55:48 +0200 Subject: [PATCH] [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&B` and never unescaped, so the autocompletion frontend shows `A&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. --- searx/webapp.py | 1 - 1 file changed, 1 deletion(-) 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)