I have the following Blade template code:
<p>{!! $description !!}</p>
The current output is:
<p></p>
<h1>This is a heading</h1>
<p>This is a paragraph</p>
I've also tried using the following approaches, but they didn't give me the desired result:
{!! html_entity_decode($description) !!}
{!! nl2br($description) !!}
However, I'd like the content within the tags to be placed inside a paragraph. How can I achieve this output?
Is there a way to properly structure the Blade template code so that the entire content, including headings and paragraphs, is wrapped inside the opening and closing
tags?