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

Fixes #7612: Strip HTML from custom field descriptions

This commit is contained in:
jeremystretch
2021-10-27 08:41:28 -04:00
parent 090df05193
commit d48a68317d
3 changed files with 7 additions and 2 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 }}">{{ field }}</span></td>
<td><span title="{{ field.description|striptags }}">{{ field }}</span></td>
<td>
{% if field.type == 'boolean' and value == True %}
<i class="mdi mdi-check-bold text-success" title="True"></i>