SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[fix] html escape
Adam Tauber111a86d355fe
diff --git a/searx/engines/startpage.py b/searx/engines/startpage.pyindex f5a652317..8d44d05ab 100644--- a/searx/engines/startpage.py+++ b/searx/engines/startpage.py@@ -1,5 +1,6 @@from urllib import urlencodefrom lxml import html+from cgi import escapebase_url = Nonesearch_url = None@@ -35,11 +36,11 @@ def response(resp):if url.startswith('http://www.google.')\or url.startswith('https://www.google.'):continue- title = link.text_content()+ title = escape(link.text_content())content = ''if result.xpath('./p[@class="desc"]'):- content = result.xpath('./p[@class="desc"]')[0].text_content()+ content = escape(result.xpath('./p[@class="desc"]')[0].text_content())results.append({'url': url, 'title': title, 'content': content})