While working with a text editor, we have the ability to incorporate various HTML tags such as images and videos. However, I am only interested in displaying text fields. When I use {{$loop->content}}
, it displays:
<p><strong>EXAMPLE</strong></p><img src='/..'>
But when I attempt to use {!! $loop->content !!}
, it shows "EXAMPLE" plus the image. What I actually want is to display just "EXAMPLE" without including the image. Is there a method to achieve this using Laravel shortcodes, PHP functions, or CSS techniques? I have looked through the documentation but haven't found a solution yet. Thank you in advance.