Skip to content

Commit

Permalink
Update Chat.vue
Browse files Browse the repository at this point in the history
Removing v-html tags from chat messages
  • Loading branch information
SalleeMatthew authored and dburleson committed Sep 3, 2024
1 parent b178f90 commit 5e60b0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spa/src/components/Chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
<sup class="inline" v-show="msg.role">{{ msg.role }}</sup>
{{ msg.username }}
<sub class="inline">{{ msg.exp }}</sub> :
<span class="font-normal" v-html="msg.msg"></span>
<span class="font-normal">{{ msg.msg }}</span>
</span>
<span class="font-bold" v-else-if="msg.new === true">
<sup class="inline" v-show="msg.role">{{ msg.role }}</sup>
{{ msg.username }}
<sub class="inline">{{ msg.exp }}</sub> :
<span class="font-normal" v-html="msg.msg"></span>
<span class="font-normal">{{ msg.msg }}</span>
</span>
</li>
</ul>
Expand Down

0 comments on commit 5e60b0a

Please sign in to comment.