[Vuejs]-Make v-select html conversion

0👍

You could use template inside v-select for your custom display. Then use v-html to decode html tags as below :

<v-select :items='quizs' v-model="quizid">
    <template v-slot:item='{item}'>
         <div v-html='item.questiontext'/>
    </template>
    <template v-slot:selection='{item}'>
         <div v-html='item.questiontext'/>
    </template>
</v-select>

Leave a comment