Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[fix] route /autocompleter: escape `<` and `>` in the simple theme

Markus Heiser0c8ff97d9e98
diff --git a/searx/webapp.py b/searx/webapp.py
index 613849dc4..b6dc18937 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -916,7 +916,8 @@ def autocompleter():
suggestions = json.dumps([sug_prefix, results])
mimetype = 'application/x-suggestions+json'
- suggestions = escape(suggestions, False)
+ if get_current_theme_name() == 'simple':
+ suggestions = escape(suggestions, False)
return Response(suggestions, mimetype=mimetype)