Support the ongoing development of Laravel.io →
Views Blade
Last updated 2 years ago.
0

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

0

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

0

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

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.