summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCqoicebordel <Cqoicebordel@users.noreply.github.com>2014-12-08 12:54:12 +0100
committerCqoicebordel <Cqoicebordel@users.noreply.github.com>2014-12-08 12:54:12 +0100
commit25c743f2afbf083d4ed715c7dc3f10d459b5205d (patch)
tree22238a77c4fc1d3867d64792c062262e1ad96ba4
parent79b936963fb70f25e0255a0f96bcae27f2b7c5f3 (diff)
Striptag on alt and title
Strip HTML tags on alt and title of the images
-rw-r--r--searx/templates/oscar/result_templates/images.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/templates/oscar/result_templates/images.html b/searx/templates/oscar/result_templates/images.html
index 9dfe3d337..7689f9f58 100644
--- a/searx/templates/oscar/result_templates/images.html
+++ b/searx/templates/oscar/result_templates/images.html
@@ -1,5 +1,5 @@
<a href="{{ result.img_src }}" data-toggle="modal" data-target="#modal-{{ index }}">
- <img src="{{ result.img_src }}" alt="{{ result.title|e }}" title="{{ result.title|e }}" class="img-thumbnail">
+ <img src="{{ result.img_src }}" alt="{{ result.title|striptags }}" title="{{ result.title|striptags }}" class="img-thumbnail">
</a>
<div class="modal fade" id="modal-{{ index }}" tabindex="-1" role="dialog" aria-hidden="true">