yariksav / vuetify-dialog

Easy dialogs in Vuetify.js framework
MIT License
195 stars 48 forks source link

How use html in notifications? #110

Closed 4KDA closed 3 years ago

4KDA commented 3 years ago

How use html in notifications (Alert)?

Replace in Alert component 16 line from {{ text }} to v-html="text"?

ikallali commented 3 years ago

+1

yariksav commented 3 years ago

Sorry for delay. Released version 2.0.13

sbernard31 commented 2 years ago

I'm using

$dialog.notify.error(message, {
      position: "bottom-right",
      timeout: 5000,
    });

but my message value contains some string which is considered as html. (e.g. <3442>) I would like the text was considered as plain text is there a way to do that ?

ikallali commented 2 years ago

You can use &lt;3442&gt;

sbernard31 commented 2 years ago

Yep I know but I need to escape all HTML character in my message variable. And I didn't find any out of the box way to escape, so I'm asking myself if there is not an API or a better way to do that.