2 ms·
Not being familiar with Laravell, having a look at[1], I see what you mean: > In Laravel 4 Blade included the following two styles: {{ and {{{. > The double cu
by e12e 12y ago
Not being familiar with Laravell, having a look at[1], I see what you mean:
> In Laravel 4 Blade included the following two styles: {{ and {{{.
> The double curly bracket was a raw echo and the triple curly bracket escaped.
>
> Now both the double and triple curly brackets escape the variable and a new {!! $var !!} is for raw.
I'd argue that having unescaped output be shorter/easier than escaped output was probably a design error in earlier versions -- but I'm not sure I like the "fix"... If it was a green-field design, I must admit I like the "danger!"-feel that unescaped output has in L5 though.
[1] https://laravel-news.com/2015/01/laravel-5/ https://laravel-news.com/2015/01/laravel-5/