Striptag on alt and title

Strip HTML tags on alt and title of the images
This commit is contained in:
Cqoicebordel 2014-12-08 12:54:12 +01:00
parent 79b936963f
commit 25c743f2af
1 changed files with 1 additions and 1 deletions

View File

@ -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">