$slider->details value is slider heading in database, however, is not being rendered.
I have solved it by php echo (<?php echo $slider->details; ?>) but I want to use
the blade syntax instead.
$slider->details value is slider heading in database, however, is not being rendered.
I have solved it by php echo (<?php echo $slider->details; ?>) but I want to use
the blade syntax instead.
By default, Blade
{{ }}
statements are automatically sent through PHP'shtmlspecialchars
function to prevent XSS attacks.
If you don't want the data to be escaped then you need to use {!! !!}
instead of {{ }}
:
{!! $slider->details !!}
Documentation for displaying data.
slider heading
in database – Sariful_Islam Jan 18 '20 at 08:10