commit: 9109686c4e7208e0c228afcc8dfe5e20e24d598d
parent 811515101b750717f6b07fad1a9b75041f91c90d
Author: Thomas Pointhuber <thomas.pointhuber@gmx.at>
Date: Sat, 10 Jan 2015 20:26:17 +0100
[enh] using less html code to disable autoescaping for embeded results
Diffstat:
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
@@ -11,9 +11,7 @@
{% if result.embedded %}
<div id="result-media-{{ index }}" class="collapse">
-{% autoescape false %}
- {{ result.embedded }}
-{% endautoescape %}
+ {{ result.embedded|safe }}
</div>
{% endif %}
diff --git a/searx/templates/oscar/result_templates/videos.html b/searx/templates/oscar/result_templates/videos.html
@@ -11,9 +11,7 @@
{% if result.embedded %}
<div id="result-video-{{ index }}" class="collapse">
-{% autoescape false %}
- {{ result.embedded }}
-{% endautoescape %}
+ {{ result.embedded|safe }}
</div>
{% endif %}