summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCqoicebordel <Cqoicebordel@users.noreply.github.com>2014-12-10 18:21:41 +0100
committerCqoicebordel <Cqoicebordel@users.noreply.github.com>2014-12-10 18:21:41 +0100
commit5104552937057a60e63a1dc3002469954cf4a658 (patch)
tree9aaa7ca414668ca195ad78fa2a987b2025e56ab8
parent94ea67547aeaaa76ea7345bb77fd0a607ca1da09 (diff)
downloadsearxng-5104552937057a60e63a1dc3002469954cf4a658.tar.gz
searxng-5104552937057a60e63a1dc3002469954cf4a658.zip
Multiple HTML corrections
Alt on favicon No <p> in <p> Correct alt and title on img
-rw-r--r--searx/templates/default/result_templates/videos.html6
1 files changed, 2 insertions, 4 deletions
diff --git a/searx/templates/default/result_templates/videos.html b/searx/templates/default/result_templates/videos.html
index 233a6c021..0a89a67aa 100644
--- a/searx/templates/default/result_templates/videos.html
+++ b/searx/templates/default/result_templates/videos.html
@@ -1,8 +1,6 @@
<div class="result">
- <p>
- <h3 class="result_title"> {% if result['favicon'] %}<img width="14" height="14" class="favicon" src="static/{{theme}}/img/icon_{{result['favicon']}}.ico" />{% endif %}<a href="{{ result.url }}">{{ result.title|safe }}</a></h3>
+ <h3 class="result_title"> {% if result['favicon'] %}<img width="14" height="14" class="favicon" src="static/{{theme}}/img/icon_{{result['favicon']}}.ico" alt="{{result['favicon']}}" />{% endif %}<a href="{{ result.url }}">{{ result.title|safe }}</a></h3>
{% if result.publishedDate %}<p class="published_date">{{ result.publishedDate }}</p>{% endif %}
- <a href="{{ result.url }}"><img class="thumbnail" src="{{ result.thumbnail }}" title={{ result.title }} alt=" {{ result.title }}"/></a>
+ <a href="{{ result.url }}"><img class="thumbnail" src="{{ result.thumbnail }}" title="{{ result.title|striptags }}" alt="{{ result.title|striptags }}"/></a>
<p class="url">{{ result.url }}</p>
- </p>
</div>