diff options
| author | Bnyro <bnyro@tutanota.com> | 2026-08-03 17:55:48 +0200 |
|---|---|---|
| committer | Bnyro <bnyro@tutanota.com> | 2026-08-03 19:17:57 +0200 |
| commit | aa059419ff027cb23be88ffa3b080a41e386fa95 (patch) | |
| tree | acff9499f16f08671a382b397ce1ffeb32b04b1d /searx/webapp.py | |
| parent | 0734ee6c7168ced321bac5f9ec2ef3fa49aee1d1 (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&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.
Diffstat (limited to 'searx/webapp.py')
| -rwxr-xr-x | searx/webapp.py | 1 |
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) |
