{{ }} - Outputs are safe. For example if you have variable with <p><br></p> ir will output the text exactly. {!! !!} - Outputs are not safe. For the same example you will get a paragraph and a line break.
ModestasV said:
{{ }} - Outputs are safe. For example if you have variable with <p><br></p> ir will output the text exactly. {!! !!} - Outputs are not safe. For the same example you will get a paragraph and a line break.
So what the good solution ??
Depends for what are you going to use. Mostly you should use {{ }} but for example if you want to show Form::text() - you must use {!! !!}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community