let confirmationAlert = await this.alertCtrl.create({
header: 'UPLOAD SUCCESSFUL',
message: '<img class="alertControlImg" src="./assets/imgs/alert/upload_success.png" /><br />' +
'Thank you for your submission.',
buttons: [
{
text: 'GO TO HOME',
cssClass: 'secondary',
role: 'cancel',
handler: () => {
this.router.navigateByUrl('/home', {replaceUrl: true})
}
}
]
});
await confirmationAlert.present();
I used to do this in ionic 6. But Ionic 7 doesn’t display the image instead it displays HTML tags itself.
Am I missing anything?
Any lead is appreciated. Thanks