Friday, March 10, 2017

laravel blade disable escape with substr method

in Laravel 5 I'm trying to disable escaping in a Blade template which currently has the following:



I tried with



but it returns a 1 instead of a substring of text of 140 characters. I cannot move the substr functions inside a controller because I'm inside of a loop:

@foreach($articleList as $k => $v)

any idea?



via sarah.ferguson

Advertisement