Search code examples
laravellaravel-bladeckeditor4

ck editor content does not displaying as html in frontend


My website is in Laravel. I am makeing about-us page in ckeditor on the Admin side.On the admin end, it works fine. I save the content json_encoded in DB. Issue is that when i want to display it on the front end side it displays the content as string . Have a look at result enter image description here

what i am doing in blade.php is here enter image description here


Solution

  • Your current output is escaped(safe-printed) by default, try printing the content by using:

    @if (isset($about?->about))
    {!! json_decode($about->about) !!}
    @endif
    

    Read more: Laravel Docs: Displaying Unescaped Data