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
The {{ }}
syntax will escape the data with htmlentities
.
For unescaped you can use {!! !!}
Laravel Docs - Blade - Displaying Data
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With