aboutsummaryrefslogtreecommitdiff
path: root/src/components/poll/poll.vue
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2021-08-13 12:19:57 +0300
committerHenry Jameson <me@hjkos.com>2021-08-13 12:19:57 +0300
commit6c6df29ed3b76ee5f2e6ba43a6185ff66b91aace (patch)
tree0d62ae8f2df7ade67f31be4fe349cf482c52ad13 /src/components/poll/poll.vue
parentadd5921b8b3579b153bef6ee2b1916227016d200 (diff)
support richcontent in polls
Diffstat (limited to 'src/components/poll/poll.vue')
-rw-r--r--src/components/poll/poll.vue6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/components/poll/poll.vue b/src/components/poll/poll.vue
index 187d1829..6e0234b3 100644
--- a/src/components/poll/poll.vue
+++ b/src/components/poll/poll.vue
@@ -17,8 +17,7 @@
<span class="result-percentage">
{{ percentageForOption(option.votes_count) }}%
</span>
- <!-- eslint-disable-next-line vue/no-v-html -->
- <span v-html="option.title_html" />
+ <RichContent :html="option.title_html" :handle-links="false" :emoji="emoji" />
</div>
<div
class="result-fill"
@@ -42,8 +41,7 @@
:value="index"
>
<label class="option-vote">
- <!-- eslint-disable-next-line vue/no-v-html -->
- <div v-html="option.title_html" />
+ <RichContent :html="option.title_html" :handle-links="false" :emoji="emoji" />
</label>
</div>
</div>