I would like to display HTML text, not just plain text, in a toast message. Is that possible?
You can use cssClass property to customize your message
let toast = this.toastCtrl.create({
message: 'some text with <b>bold</b>',
position: 'bottom',
showCloseButton: true,
cssClass: 'toast',
closeButtonText: 'Ok'
});
toast.present();
and my css is simply:
.toast {
text-align: left;
}
but when the toast comes up, I still see the HTML but I can tell that it is using the css by switching the align to right, center, left.
This not working in v3