We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66cba0d commit b0c2582Copy full SHA for b0c2582
mcpgateway/templates/admin.html
@@ -765,7 +765,13 @@ <h2 class="text-2xl font-bold dark:text-gray-200">
765
<td
766
class="px-2 py-4 whitespace-normal break-words text-sm text-gray-500 dark:text-gray-300"
767
>
768
- {{ tool.description | replace('\n', '<br />') | safe }}
+ {% set clean_desc = (tool.description or "") | replace('\n', ' ') | replace('\r', ' ') %}
769
+ {% set refactor_desc = clean_desc | striptags | trim | escape %}
770
+ {% if refactor_desc | length is greaterthan 120 %}
771
+ {{ refactor_desc[:120] }}...
772
+ {% else %}
773
+ {{ refactor_desc }}
774
+ {% endif %}
775
</td>
776
<td class="px-2 py-4 whitespace-nowrap">
777
{% if tool.annotations %} {% if tool.annotations.title %}
0 commit comments