mardi 17 novembre 2020

Laravel doesn't render "**head** and **body**" tags in blade

I have an HTML email template with head and body tags in my database table. I'm trying to render the actual HTML with the "head and body" tags in my blade.

I'm using {!! $data->email_body !!} to render the HTML. It does render the HTML version but the problem is, it automatically cuts off the head and body tags while rendering, showing the html data without these tags.

Is there any option to render the whole HTML "as is" without cutting off the "head and body" tags?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire