logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git
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:

Msearx/templates/oscar/result_templates/default.html4+---
Msearx/templates/oscar/result_templates/videos.html4+---
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 %}