summaryrefslogtreecommitdiff
path: root/searx/engines/github.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/github.py')
-rw-r--r--searx/engines/github.py3
1 files changed, 2 insertions, 1 deletions
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