Is this possible?
Is this possible?
Yes, of course.
http://www.yiiframework.com/doc-2.0/guide-output-data-widgets.html#listview
<?php
use yii\helpers\Html;
use yii\helpers\HtmlPurifier;
?>
<div class="post">
<h2><?= Html::encode($model->title) ?></h2>
<p>written by <?= Html::encode($model->author->name) ?></p>
<?= HtmlPurifier::process($model->text) ?>
</div>