Laravel 5.0 - Blade Template Errors

后端 未结 2 1252
被撕碎了的回忆
被撕碎了的回忆 2020-12-18 00:28

Just playing about with Laravel 5, and am having difficulties using the Blade templating syntax. It appears that all my special characters are being escaped. Have I somethin

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-18 00:50

    In Laravel 5, {{ }} will auto escape. What you need to use now is {!! !!}.

    {!! Form::open() !!}
    
    {!! Form::close() !!}
    

    More read about the change can be seen on https://laracasts.com/discuss/channels/general-discussion/new-blade-tag-for-unescaped-data-thoughts (thanks to @user1960364).

提交回复
热议问题