Can i see your code and the result?
Blade - Displaying Unescaped Html
I have a string of HTML coming from the controller, and I'm trying to render it unescaped in the blade template. The {{!! $variable !!}} method works - in the sense that it renders the html unescaped, but it adds an extra curly brace at the top and another one at the bottom of the html:
{
My title - looking normal
The text which looks fine and nicely formatted
}
if I don't use the double exclamation mark and I render the variable like so: {{ $variable }} then the output is
<h1>My title - looking normal</h1>
<p>The text which looks fine and nicely formatted</p>
So all looks normal, and the curly brace is not in that variable. It must mean that the curly braces are rendered because of the !! !! but have no clue how to prevent it
Nevermind, I'm being silly. The unescaped syntax has single curly braces. I used double curly braces :|
Thanks for the fast reply InspiredPrynce!
Please or to participate in this conversation.