use title html for poll options before vote
This commit is contained in:
parent
42c747a342
commit
415119cda9
3 changed files with 4 additions and 2 deletions
|
@ -42,7 +42,8 @@
|
|||
:value="index"
|
||||
>
|
||||
<label class="option-vote">
|
||||
<div>{{ option.title }}</div>
|
||||
<!-- eslint-disable-next-line vue/no-v-html -->
|
||||
<div v-html="option.title_html" />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -280,7 +280,7 @@ export const parseStatus = (data) => {
|
|||
if (output.poll) {
|
||||
output.poll.options = (output.poll.options || []).map(field => ({
|
||||
...field,
|
||||
title_html: addEmojis(field.title, data.emojis)
|
||||
title_html: addEmojis(escape(field.title), data.emojis)
|
||||
}))
|
||||
}
|
||||
output.pinned = data.pinned
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue