I am trying to add formatted HTML to the inside of a v-dialog. I had a v-card inside but I have ripped that out so I can start from scratch. This is what I have so far
<v-dialog v-model="dialogPubs" scrollable max-width="950px">
<div>{{editedItem.Publication}}</div>
</v-dialog>
The {{editedItem.Publication}} contains formatted HTML with color changes and also hyperlinks. I've seen where using the v-card the v-text with v-html is suppose to work but it didn't for me.
I have a data-table where when I double click on a row the dialog pops up with the formatted HTML but I'm getting straight text. If I need to put the v-card back that is fine as long as I can render HTML. Thanks.
Please double check how you are using
v-html
. You need to use it on the element that will contain HTML and you need to add it as an attribute that binds to adata
property containing an HTML string. Please see below.