php - What is the difference between {{ }} and {!! !!} in laravel blade files? -


in laravel framework can use blade add php code in html file.
using both {{ }} , {!! !!} syntax in blade files of laravel.
difference between them?

blade {{ }} statements automatically sent through php's htmlentities function prevent xss attacks.

if pass data controller view styling as

$first = "<b>narendra sisodia</b>"; 

and if accessed within blade {{ $first }}

then output'll

<b>narendra sisodia</b> 

and if accessed within blade {!! $first !!}

then output'll

narendra sisodia


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

r - Update two sets of radiobuttons reactively - shiny -