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] SyntaxWarning: invalid escape sequence '\>'

Markus Heiser87f18b98ec23
diff --git a/searx/search/checker/impl.py b/searx/search/checker/impl.py
index 087ced5c2..b5dff1fd2 100644
--- a/searx/search/checker/impl.py
+++ b/searx/search/checker/impl.py
@@ -36,7 +36,7 @@ HTML_TAGS = [
def get_check_no_html():
- rep = ['<' + tag + '[^\>]*>' for tag in HTML_TAGS]
+ rep = ['<' + tag + r'[^\>]*>' for tag in HTML_TAGS]
rep += ['</' + tag + '>' for tag in HTML_TAGS]
pattern = re.compile('|'.join(rep))