I use DetalView widget and I need <ВR> tag:
<?= DetailView::widget([
'model' => $model,
'attributes' => [
'information:ntext',
[
'attribute' => 'text',
'value' => $model->getUserAttributes('getScientificWorks', 'text'),
],
],
])
?>
getUserAttributes returns string:
$string .= $item[$field] . ", ";
If instead of comma input <ВR>, then text will be like this: "text.. <ВR> ..text"