diff --git a/searx/templates/oscar/results.html b/searx/templates/oscar/results.html
index ce99fe0ac..ac7179158 100644
--- a/searx/templates/oscar/results.html
+++ b/searx/templates/oscar/results.html
@@ -16,7 +16,7 @@
{%- endmacro %}
{%- macro search_url() %}{{ url_for('search', _external=True) }}?q={{ q|urlencode }}{% if selected_categories %}&categories={{ selected_categories|join(",") | replace(' ','+') }}{% endif %}{% if pageno > 1 %}&pageno={{ pageno }}{% endif %}{% if time_range %}&time_range={{ time_range }}{% endif %}{% if current_language != 'all' %}&language={{ current_language }}{% endif %}{% endmacro -%}
-{% block title %}{% if query_in_title %}{{- q|e -}} - {% endif %}{% endblock %}
+{% block title %}{% if query_in_title %}{{- q|e }} - {% endif %}{% endblock %}
{% block meta %}{{" "}}{% endblock %}
{% block content %}
{% include 'oscar/search.html' %}
diff --git a/searx/templates/simple/results.html b/searx/templates/simple/results.html
index 5a279bd7d..72e10e075 100644
--- a/searx/templates/simple/results.html
+++ b/searx/templates/simple/results.html
@@ -7,7 +7,7 @@
{% endfor %}
{% endfor %}
{%- endmacro %}
-{% block title %}{% if query_in_title %}{{- q|e -}} - {% endif %}{% endblock %}
+{% block title %}{% if query_in_title %}{{- q|e }} - {% endif %}{% endblock %}
{% block meta %}{% endblock %}
{% block content %}