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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)