O
O
Offereight2020-05-15 13:52:32
Yii
Offereight, 2020-05-15 13:52:32

How to display html in ListView::widget without special characters?

Good day. I work with a site on Yii2. There was a problem displaying information on the page.
The tag with html markup is stored in the database, but when rendered on the html page it turns into special characters.
Here is the output code:

<?= ListView::widget([
    'dataProvider' => $dataProvider,
    'layout' => '{items}{pager}',
    'itemView' => 'bid',
    'options' => [
        'class' => 'history-wrapper',
        'itemOptions' => [
                'format' => 'html'
        ]
    ],
    'itemOptions' => [
        'class' => 'row',
    ],
]); ?>

Tried adding 'format' => 'row'. Does not help.
Thank you in advance.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question