diff options
| author | Grant Lanham <contact@grantlanham.com> | 2024-09-10 21:44:30 -0400 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-09-15 15:19:51 +0200 |
| commit | 0b832f19bf6590f099c572686d847db7cf7487e9 (patch) | |
| tree | 9169eb1b3d530811c577bf1103c89693ac59282f /searx/templates/simple/result_templates | |
| parent | 28dc623785778a39b9f7d73359c4d535e2c2dc5b (diff) | |
[fix] Removes ``/>`` ending tags for void HTML elements
Removes ``/>`` ending tags for void elements [1] and replaces them with ``>``.
Part of the larger cleanup to cleanup invalid HTML throughout the codebase [2].
[1] https://html.spec.whatwg.org/multipage/syntax.html#void-elements
[2] https://github.com/searxng/searxng/issues/3793
Diffstat (limited to 'searx/templates/simple/result_templates')
| -rw-r--r-- | searx/templates/simple/result_templates/map.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/templates/simple/result_templates/map.html b/searx/templates/simple/result_templates/map.html index 3bdc378d6..d123137cb 100644 --- a/searx/templates/simple/result_templates/map.html +++ b/searx/templates/simple/result_templates/map.html @@ -18,12 +18,12 @@ <span itemprop="streetAddress"> {%- if result.address.house_number -%}{{- result.address.house_number -}}, {% endif %} {{- result.address.road -}} - </span><br/> + </span><br> {%- endif %} {%- if result.address.locality -%} <span itemprop="addressLocality">{{- result.address.locality -}}</span> {%- if result.address.postcode -%}, <span itemprop="postalCode">{{- result.address.postcode -}}</span>{% endif %} - <br/> + <br> {%- endif -%} {%- if result.address.country -%} <span itemprop="addressCountry">{{- result.address.country -}}</span> |