Blade engine: print triple curly braces

Update

Very recently, a pull request was merged that fixes this problem!!
As of Laravel 5.1.7 it is possible to use the @ sign as expected:

@{{{ ... }}}

Original Answer

The least ugly workaround I found up until now is to escape the first two brackets as normal and adding an invisible between them and the third bracket:

@{{‌{test}}}

I'll investigate further and update this answer if I find something better...


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}}}

Tags:

Laravel

Blade