From 9109686c4e7208e0c228afcc8dfe5e20e24d598d Mon Sep 17 00:00:00 2001 From: Thomas Pointhuber Date: Sat, 10 Jan 2015 20:26:17 +0100 Subject: [PATCH] [enh] using less html code to disable autoescaping for embeded results --- searx/templates/oscar/result_templates/default.html | 4 +--- searx/templates/oscar/result_templates/videos.html | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/searx/templates/oscar/result_templates/default.html b/searx/templates/oscar/result_templates/default.html index 25506b2f5..b2430ed6a 100644 --- a/searx/templates/oscar/result_templates/default.html +++ b/searx/templates/oscar/result_templates/default.html @@ -11,9 +11,7 @@ {% if result.embedded %}
-{% autoescape false %} - {{ result.embedded }} -{% endautoescape %} + {{ result.embedded|safe }}
{% endif %} diff --git a/searx/templates/oscar/result_templates/videos.html b/searx/templates/oscar/result_templates/videos.html index 32000e662..c3d02c14d 100644 --- a/searx/templates/oscar/result_templates/videos.html +++ b/searx/templates/oscar/result_templates/videos.html @@ -11,9 +11,7 @@ {% if result.embedded %}
-{% autoescape false %} - {{ result.embedded }} -{% endautoescape %} + {{ result.embedded|safe }}
{% endif %}