在{{}}标记内划分刀片中的行

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

The curly brace blade tags are for echoing values, they don't do anything else and you cannot nest them in the way you're trying to in your example. You can find information about these tags in the Blade documentation, but in summary:

The double curly brace tag means echo this value and escape it, e.g:

{{ $row[$colField] }}

compiles to:

<?php echo e($row[$colField]); ?>

A curly brace with 2 exclamation marks means echo this value without escaping it, e.g:

{!! $row[$colField] !!}

compiles to:

<?php echo $row[$colField]; ?>

If you would like for a line break (<br/>) to appear somewhere within the value of $row[$colField] then you must transform that value before outputting it. There are functions, like nl2br that can replace new lines with line breaks, so you could for example do this:

{!! nl2br($row[$colField]) !!}

Which would compile to:

<?php echo nl2br($row[$colField]); ?>

So if the value of $row[$colField] is:

Hello world
This is another line.

Then that code would output:

Hello world</br>
This is another line.

That said your question is unclear so if this information does not help then please rewrite your question to clearly communicate what you're trying to achieve, i.e: include an example of your input and an example of your desired output.