I want to put a line break into a blade report.
I know there is the {!! !!}
tags to escape the html tags, but in my situation I have a long string coming in at {{$row[$colField]}}
so it already within {{ }}
tags.
The way I tried it would have appeared like {{ randome text {!! <br/> !!} }}
.
Is there any other way to do this perhaps.
@foreach($fieldList as $field)
@if ($header->group == $field->group)
<?php $colName = $field->columnname ?>
<?php $colField = $field->columnfield; ?>
<?php $fieldGroup = $field->group; ?>
@if ($colName != $fieldGroup)
<span class="titleSpan" style="white-space: nowrap; font-weight: bold">{{ $colName=='Age'?'':$colName.':' }} </span>
@endif
{{$row[$colField]}}<br>
@endif
@endforeach