laravel - Html 标签在 ckeditor 之后显示

标签 laravel laravel-5 ckeditor

我在我的 Laravel 项目中使用 ckeditor CDN。我已经让编辑器显示在文本区域上,但在提交表单后,文本区域中的文本与 html 标签一起显示。我错过了什么吗?

<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>

表单 View :

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

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

显示 View :

{{$pages->details}}

输出: output

最佳答案

{{ }} 语法将使用 htmlentities 转义数据。

对于未转义的,你可以使用 {!! !!}

Laravel Docs - Blade - Displaying Data

关于laravel - Html 标签在 ckeditor 之后显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34544232/

相关文章:

php - 如何在 Laravel 中捕获非命令计划任务的输出?

php - Laravel 5 : How to create a custom attribute for a collection, 然后用它排序

php - Laravel 4 多用户认证

php - laravel 从数据库中拉取数据

database - Laravel 5 如何配置队列数据库驱动程序以连接到非默认数据库?

Laravel - timestamp() 和 timestampTz() 有什么区别?

php - 在 Apache 服务器中托管的 Laravel 框架中开发的 API 在从 Android 和 iOS 移动应用程序请求时没有得到任何响应

ckeditor - 删除 CKEditor 实例

javascript - 使用 javascript 将 ckEditor 中的选定内容替换为新内容

jquery - CKeditor 实例已存在