Laravel 5: Display HTML with Blade

后端 未结 20 2435
栀梦
栀梦 2020-11-22 16:21

I have a string returned to one of my views, like this:

$text = \'

Lorem ipsum dolor

20条回答
  •  庸人自扰
    2020-11-22 16:36

    You need to use

    {!! $text !!}
    

    The string will auto escape when using {{ $text }}.

提交回复
热议问题