Answer the question
In order to leave comments, you need to log in
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',
],
]); ?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question