Home > Software engineering >  ck editor content does not displaying as html in frontend
ck editor content does not displaying as html in frontend

Time:10-13

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

CodePudding user response:

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

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

Read more: Laravel Docs: Displaying Unescaped Data

  • Related