Browse Source

Multiple HTML corrections

Alt on favicon
No <p> in <p>
Correct alt and title on img
Cqoicebordel 10 years ago
parent
commit
5104552937
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      searx/templates/default/result_templates/videos.html

+ 2
- 4
searx/templates/default/result_templates/videos.html View File

@@ -1,8 +1,6 @@
1 1
 <div class="result">
2
-    <p>
3
-      <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>
2
+      <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>
4 3
       {% if result.publishedDate %}<p class="published_date">{{ result.publishedDate }}</p>{% endif %}
5
-      <a href="{{ result.url }}"><img class="thumbnail" src="{{ result.thumbnail }}" title={{ result.title }} alt=" {{ result.title }}"/></a>
4
+      <a href="{{ result.url }}"><img class="thumbnail" src="{{ result.thumbnail }}" title="{{ result.title|striptags }}" alt="{{ result.title|striptags }}"/></a>
6 5
       <p class="url">{{ result.url }}</p>
7
-    </p>
8 6
 </div>