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 - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -