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
Sanitize extract_text
Cqoicebordel44c9216c4978
diff --git a/searx/engines/xpath.py b/searx/engines/xpath.pyindex 72120304e..1a599dc0a 100644--- a/searx/engines/xpath.py+++ b/searx/engines/xpath.py@@ -28,13 +28,13 @@ def extract_text(xpath_results):result = ''for e in xpath_results:result = result + extract_text(e)- return result+ return result.strip()elif type(xpath_results) in [_ElementStringResult, _ElementUnicodeResult]:# it's a stringreturn ''.join(xpath_results)else:# it's a element- return html_to_text(xpath_results.text_content())+ return html_to_text(xpath_results.text_content()).strip()def extract_url(xpath_results, search_url):