Show plain text in Gridview/DetailView

Hi guys,

I use kartik/GridView. In my database, I have following record using widget of \dosamigos\ckeditor\CKEditor:




<p>ist gewöhnungsbedürftig aber halt auch kompetent</p>



Any ideas how to outline this record in GridView without HTMl-tags , just plain text like this:


ist gewöhnungsbedürftig aber halt auch kompetent

Here is my DetailView:




<?php


use yii\helpers\Html;

use yii\widgets\DetailView;

?>

<div class="bewerber-view">


    <div class="row">

        <div class="col-sm-9">

            <h2><?= Html::encode($model->id) ?></h2>

        </div>

    </div>


    <div class="col-lg-1">

        <?php

        $gridColumn = [

            .

            .

  'beurteilung_persoenlich:ntext', //contains upper record

            .

            .

        ];


        echo DetailView::widget([

            'model' => $model,

            'attributes' => $gridColumn

        ]);

        ?>

 

</div>



Got solution for my own.Here,it is




<?php


use yii\helpers\Html;

use yii\widgets\DetailView;

?>

<div class="bewerber-view">


    <div class="row">

        <div class="col-sm-9">

            <h2><?= Html::encode($model->id) ?></h2>

        </div>

    </div>


    <div class="col-lg-1">

        <?php

        $gridColumn = [

            .

            .

  'beurteilung_persoenlich:html', //contains upper record

            .

            .

        ];


        echo DetailView::widget([

            'model' => $model,

            'attributes' => $gridColumn

        ]);

        ?>

 

</div>