Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Html tags showing after ckeditor

Im using ckeditor CDN in my laravel project.I've got the editor to show up on the text area but after I submit the form,texts from the textarea displays along with html tags. Am i missing anything?

<head>
   <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
         <script src="//cdn.ckeditor.com/4.5.6/standard/ckeditor.js"></script>
    <title>project title </title>
  </head>

Form view:

<div class="form-goup">
{!!Form::label('details','details')!!}
{!!Form::textarea('details',null,['class'=>'form-control'])!!}

<script>
        ckeditor.replace( 'details' );
    </script>

show view:

{{$pages->details}}

output: output

like image 374
user3810794 Avatar asked Dec 05 '22 19:12

user3810794


1 Answers

The {{ }} syntax will escape the data with htmlentities.

For unescaped you can use {!! !!}

Laravel Docs - Blade - Displaying Data

like image 98
lagbox Avatar answered Feb 08 '23 19:02

lagbox