Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

emaano's avatar

Sweet Alert not displaying HTML

Using the uxweb/sweetalert package. Had things working somewhat, but after doing some work on the site, the the sweet alerts were not showing. I had to go back and add a title in the code, but now the HTML will not display. It just shows prints the raw code.

Controller

        Alert::info('test', 'Random lorempixel.com : <img src="http://lorempixel.com/150/150/">')->html();
        return redirect('/challenge/'.$challenge->slug);

At end of my view

@include('sweet::alert')

Not sure if there's updates made, or if anything has changed. Not sure where to debug as I didn't make any changes to the sweetalert package, or composer. Any assistance would be appreciated. Thanks

0 likes
0 replies

Please or to participate in this conversation.