Skip to content

Commit 3097b23

Browse files
committed
fix(ui): escape special characters in description
1 parent 45790b1 commit 3097b23

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

app/components/Compare/PackageSelector.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,8 @@ function handleFocus() {
306306
<span
307307
v-if="result.description"
308308
class="text-xs text-fg-muted truncate mt-0.5 w-full block"
309-
>
310-
{{ result.description }}
311-
</span>
309+
v-html="result.description"
310+
/>
312311
</ButtonBase>
313312
</div>
314313
</Transition>

app/components/Package/TableRow.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,8 @@ const allMaintainersText = computed(() => {
6868
<td
6969
v-if="isColumnVisible('description')"
7070
class="py-2 px-3 text-sm text-fg-muted max-w-xs truncate"
71-
>
72-
{{ pkg.description || '-' }}
73-
</td>
71+
v-html="pkg.description || '-'"
72+
/>
7473

7574
<!-- Downloads -->
7675
<td

0 commit comments

Comments
 (0)