Content in my database: <h2> This is heading text</h2>
I want to retrieve this without html tags but with bold format as <h2>
tag does .
In this case: strip_tags()
only removes the tags.
By default once you do {{ $foo->bar }} laravel retrieves everything as plain text. You may be looking at retrieving it this way instead. {!! $foo->bar !!}