Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

Add title and alt on image in infobox

Cqoicebordel8fb6ea1bf12f
diff --git a/searx/templates/default/infobox.html b/searx/templates/default/infobox.html
index d03b008f9..e99e9868b 100644
--- a/searx/templates/default/infobox.html
+++ b/searx/templates/default/infobox.html
@@ -1,6 +1,6 @@
<div class="infobox">
<h2>{{ infobox.infobox }}</h2>
- {% if infobox.img_src %}<img src="{{ infobox.img_src }}" />{% endif %}
+ {% if infobox.img_src %}<img src="{{ infobox.img_src }}" title="{{ infobox.infobox|striptags }}" alt="{{ infobox.infobox|striptags }}" />{% endif %}
<p>{{ infobox.entity }}</p>
<p>{{ infobox.content | safe }}</p>
{% if infobox.attributes %}
@@ -42,3 +42,4 @@
<br />
</div>
+ name=