a1c00l commited on
Commit
f535c4d
·
verified ·
1 Parent(s): d9ffa28

Update templates/result.html

Browse files
Files changed (1) hide show
  1. templates/result.html +3 -4
templates/result.html CHANGED
@@ -278,10 +278,9 @@
278
  {% for prop in aibom.metadata.properties %}
279
  {% if prop.name == 'tags' and prop.value %}
280
  <div><strong>Tags:</strong>
281
- {% set tags = prop.value|replace('[', '')|replace(']', '')|replace('"', '')|split(', ') %}
282
- {% for tag in tags %}
283
- <span class="tag">{{ tag }}</span>
284
- {% endfor %}
285
  </div>
286
  {% elif prop.name not in ['aibom:quality-score', 'aibom:quality-breakdown', 'aibom:max-scores'] %}
287
  <div><strong>{{ prop.name }}:</strong> {{ prop.value }}</div>
 
278
  {% for prop in aibom.metadata.properties %}
279
  {% if prop.name == 'tags' and prop.value %}
280
  <div><strong>Tags:</strong>
281
+ <!-- Display tags without using split filter -->
282
+ {% set tag_value = prop.value|replace('[', '')|replace(']', '')|replace('"', '') %}
283
+ <span class="tag">{{ tag_value }}</span>
 
284
  </div>
285
  {% elif prop.name not in ['aibom:quality-score', 'aibom:quality-breakdown', 'aibom:max-scores'] %}
286
  <div><strong>{{ prop.name }}:</strong> {{ prop.value }}</div>