dimanche 27 mars 2016

Remove HTML tags from Strings on laravel blade

I want remove HTML tags (all) from a string on laravel blade ...

code

{!! \Illuminate\Support\Str::words($subject->body, 5,'...')  !!}

output (example)

<p>hassen zouari</p>

I want that it be like this

hassen zouari



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire