Skip to content

Commit

Permalink
[Fixes #5137] Striptags for service resources
Browse files Browse the repository at this point in the history
  • Loading branch information
t-book committed Oct 29, 2019
1 parent 5408842 commit 7bab9e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions geonode/services/templates/services/service_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ <h3>{% trans "Service Resources" %} <span class="badge">{{ total_resources }}</s
{% endfor %}
{% for service in services %}
<tr>
<td><a href='{% url "service_detail" service.id %}'>{{service.title}}</a></td>
<td>{{service.abstract}}</td>
<td><a href='{% url "service_detail" service.id %}'>{{service.title|striptags}}</a></td>
<td>{{service.abstract|striptags}}</td>
</tr>
{% endfor %}
{% for layer in layers %}
{% if layer.group != "background" %}
<tr>
<td><a href='{{ layer.get_absolute_url }}'>{{layer.title}}</a></td>
<td>{{layer.abstract}}</td>
<td><a href='{{ layer.get_absolute_url }}'>{{layer.title|striptags}}</a></td>
<td>{{layer.abstract|striptags}}</td>
</tr>
{% endif %}
{% endfor %}
Expand Down

0 comments on commit 7bab9e1

Please sign in to comment.