Laravel ckeditor display raw data in the database and post form

Posted 6 months ago by jet

this is how it's showing

 <p><strong>this is hoe is showing</strong></p>
in the database and post form

create form

<div class="form-group">
                    <label for="content">Content</label>
                    <textarea name="content" id="content" required class="form-control" rows="5" placeholder="Content"></textarea>

                <div class="form-group">
                    <label for="status">Status</label>
                        <select class="custom-select" name="status" id="status" required>
                          <option value="1">Mr</option>
                          <option value="2">Mis</option>
                          <option value="3">male</option>
                <input class="btn btn-success btn-lg btn-block" type="submit" value="Create post">

     <script src="/vendor/unisharp/laravel-ckeditor/ckeditor.js"></script>
     <script src="/vendor/unisharp/laravel-ckeditor/adapters/jquery.js"></script>
        CKEDITOR.replace( 'content' );

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.