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] description escaping

asciimoo9bd44596387c
diff --git a/searx/engines/github.py b/searx/engines/github.py
index e6af380d6..591fd14a7 100644
--- a/searx/engines/github.py
+++ b/searx/engines/github.py
@@ -1,5 +1,6 @@
from urllib import urlencode
from json import loads
+from cgi import escape
categories = ['it']
@@ -20,6 +21,6 @@ def response(resp):
for res in search_res['items']:
title = res['name']
url = res['html_url']
- content = res['description']
+ content = escape(res['description'][:500])
results.append({'url': url, 'title': title, 'content': content})
return results