logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git
commit: 25c743f2afbf083d4ed715c7dc3f10d459b5205d
parent 79b936963fb70f25e0255a0f96bcae27f2b7c5f3
Author: Cqoicebordel <Cqoicebordel@users.noreply.github.com>
Date:   Mon,  8 Dec 2014 12:54:12 +0100

Striptag on alt and title

Strip HTML tags on alt and title of the images

Diffstat:

Msearx/templates/oscar/result_templates/images.html2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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">