数据库的字段值是html代码,yii框架view里,如何解析出html来
你应该说的是 这个 DetailView
'content:raw',
<?= DetailView::widget([ 'model' => $model, 'attributes' => [ 'id', 'username', 'keywords', 'description', 'title', 'pic', 'content:raw', 'status', 'created_at', 'updated_at', ], ]) ?>