Remove HTML tags from Strings on laravel blade

Try to use strip_tags() function:

http://php.net/manual/en/function.strip-tags.php

Update:
Try to do something like this in a controller:

$taglessBody = strip_tags($subject->body);

Then pass this variable into a blade template and use it instead of $subject->body.

Leave a Comment