0

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

<p>ist gew&ouml;hnungsbed&uuml;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>
tklustig
  • 483
  • 6
  • 24

2 Answers2

-1

got solution by my own:

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

will solve my problem as described. Happy Coding

tklustig
  • 483
  • 6
  • 24
-1

this worked for me

   'your_attritube_name:html'
danish ali
  • 132
  • 1
  • 5