chore: Sanitize html content (#4498)

This commit is contained in:
Muhsin Keloth
2022-04-21 11:27:28 +05:30
committed by GitHub
parent 2c73df4292
commit 27ddd77a1b
28 changed files with 52 additions and 29 deletions

View File

@@ -9,9 +9,9 @@
@click="changeCategory(category)"
>
<button
v-dompurify-html="emojis[category][0]"
class="emoji--item"
@click="changeCategory(category)"
v-html="emojis[category][0]"
/>
</li>
</ul>
@@ -23,10 +23,10 @@
<button
v-for="emoji in emojis[selectedKey]"
:key="emoji"
v-dompurify-html="emoji"
class="emoji--item"
track-by="$index"
@click="onClick(emoji)"
v-html="emoji"
/>
</div>
</div>