1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

#7612: Use escape() rather than strip_tags()

This commit is contained in:
jeremystretch
2021-11-03 08:56:30 -04:00
parent 318c8b85e9
commit 7614f423e5
2 changed files with 3 additions and 3 deletions

View File

@@ -8,7 +8,7 @@
<table class="table table-hover attr-table">
{% for field, value in custom_fields.items %}
<tr>
<td><span title="{{ field.description|striptags }}">{{ field }}</span></td>
<td><span title="{{ field.description|escape }}">{{ field }}</span></td>
<td>
{% if field.type == 'boolean' and value == True %}
<i class="mdi mdi-check-bold text-success" title="True"></i>