Godofbrowser / vuejs-dialog

A lightweight, promise based alert, prompt and confirm dialog
351 stars 111 forks source link

html message content not encoding #32

Closed adam-jones-net closed 6 years ago

adam-jones-net commented 6 years ago

I'm trying to send html code to the dialog but it doesn't seem to work.

let options = {
    html: true,
    loader: false, 
    reverse: true,
    okText: 'Submit',
    cancelText: 'Cancel',
    animation: 'zoom',
    backdropClose: true 
};
this.$dialog.confirm('a <b>test</b>').then(function () {
    console.log('Clicked on proceed')
})

The result I get in the dialog is:

a <b>test</b>

adam-jones-net commented 6 years ago

Ignore me, my mistake the options weren't being parsed!

Godofbrowser commented 6 years ago

Alright @arkid