Loading…

What is the difference between {{ $username }} and {!! $username !!} in Laravel?

{{ $username }} is simply used to display text contents but {!! $username !!} is used to display content with HTML tags if exists.

This is one of the frequently asked Laravel interview questions.

Suggest An Answer

Our Particitants

{{ $username }} prints all content with html tags(if tags were exist) but {!! $username !!}

Latest post from Laravel Interview Questions

Ask Question