How to decode html special character with string limit?

Posted 3 months ago by csesumonpro

This line does not work:

<p>{!!\Str::limit($event->description,180,"..")!!}<a href="#">View Detail</a></p>

but if I used it normaly for string limit it would:

<p>{{\Str::limit($event->description,180,"..")}}<a href="#">View Detail</a></p>

The above line works with string limit but not decode.

Please sign in or create an account to participate in this conversation.