Skip to content

Commit adcc466

Browse files
radosvet93alex-key
authored andcommitted
fix(ui): escape special characters in description (npmx-dev#1582)
1 parent 2a5a714 commit adcc466

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/components/Compare/PackageSelector.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ function handleFocus() {
307307
v-if="result.description"
308308
class="text-xs text-fg-muted truncate mt-0.5 w-full block"
309309
>
310-
{{ result.description }}
310+
{{ decodeHtmlEntities(result.description) }}
311311
</span>
312312
</ButtonBase>
313313
</div>

app/components/Package/TableRow.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const allMaintainersText = computed(() => {
6969
v-if="isColumnVisible('description')"
7070
class="py-2 px-3 text-sm text-fg-muted max-w-xs truncate"
7171
>
72-
{{ pkg.description || '-' }}
72+
{{ decodeHtmlEntities(pkg.description || '-') }}
7373
</td>
7474

7575
<!-- Downloads -->

0 commit comments

Comments
 (0)