I have this code located in a shortcode function:
$output .= \App\template('components.form-field.checkbox' , [
'label' => '',
'options' => $options,
]);
the part of the template view where this data is used looks like:
@foreach ($options as $option)
<label class="checkbox-container">
{{ ($option['label']) }}
<input type="checkbox" class="field" value="{{ $option['value'] }}" data-name="{{ $option['name'] }}" name="{{ $option['name'] }}">
<span class="checkbox"></span>
</label>
@endforeach
the compiled html looks like :
How can I prevent the br tags