简体   繁体   中英

text editor CKE showing html tags in browser

I'm using laravel 9 in blade file I mentioned cke text editor but its showing html tags in page only while update.

below is code how its defined

src="https://cdn.ckeditor.com/ckeditor5/35.1.0/classic/ckeditor.js"


<textarea type="text" class="form-control" name="description" id="editor" >{{ old('description'}}</textarea> 

below is the script

  ClassicEditor
        .create( document.querySelector( '#editor' ) )
        .then( editor => {
            console.log( editor );
        } )
        .catch( error => {
            console.error( error );
        } ); ```

I'm looking forward to your suggestions.

just change {{ old('description'}} to {!! old('description') !!}

Have a nice one. All the best.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM