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
Post a Comment