Apr 3, 2022
4
Level 1
How to render a curly brace in blade
Hi Team
So I need to render the following in plain text:
{MyContent}
MyContent being stored in a variable in blade.
If I try in blade {{{$var}}} it ofcourse renders as MyContent and if I try to escape with the @ like @{{{$var}}} I get {{{$var}}} as my output.
I know if I put in a space between the curly brace like @{ {{$var}} } it will render as { MyConetent } however I do not want these spaces in the final rendered output.
Is there any way to escape the curly brace in blade?
Please or to participate in this conversation.