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

php - Extract Text from HTTP referer -

Receive udp packets in android gstreamer -

ios - How to Rectify the Relationship Fault in CoreData While parsing RESTKIT? -