Ad

Html Tags Showing After Ckeditor

- 1 answer

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" target="_blank" rel="nofollow noreferrer" 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

Ad

Answer

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

For unescaped you can use {!! !!}

Laravel Docs - Blade - Displaying Data

Ad
source: stackoverflow.com
Ad