Answer the question
In order to leave comments, you need to log in
How to display data in DetailView with formatting?
How to display this data in DetailView with formatting in the same form as in the photo
Now it displays everything in one line
event: html does not help (because there are no html tags in the database)
Answer the question
In order to leave comments, you need to log in
Try something like this
[
'label' => 'event',
'format' => 'html',
'value' =>nl2br($model->event),
],
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question