Skip to content

Commit e4f9dc8

Browse files
committed
sanitize media description in html
1 parent 88ed1de commit e4f9dc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/assets/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ <h1><b>{{ itemSelectedDetails.title || 'untitled' }}</b></h1>
365365
<div v-if="contentImages.length">
366366
<figure v-for="media in contentImages">
367367
<img :src="media.url" loading="lazy">
368-
<figcaption v-if="media.description" v-html="media.description"></figcaption>
368+
<figcaption v-if="media.description">{{ media.description }}</figcaption>
369369
</figure>
370370
</div>
371371
<audio class="w-100" controls v-for="media in contentAudios" :src="media.url"></audio>

0 commit comments

Comments
 (0)