Blade engine: print triple curly braces

前端 未结 5 2039
灰色年华
灰色年华 2020-12-11 01:25

I know how to print double curly braces in Laravel: @{{ }}.

But how can I print triple curly braces? My first thought of adding an @ before does not wor

5条回答
  •  温柔的废话
    2020-12-11 02:06

    This is the easiest way. Use HTML entities to escape curly braces. Tested in Laravel 5. See here for the list of HTML entities. HTML Entities

    Code

    {{{text}}}
    

    Output

    {{{text}}}
    

提交回复
热议问题