@php if(!isset($target)){ $target = ''; } @endphp
@foreach ($params as $key => $value) @php $key = htmlentities($key, ENT_COMPAT | ENT_HTML401, 'UTF-8'); @endphp @if (!is_array($value)) @php $value = htmlentities($value, ENT_COMPAT | ENT_HTML401, 'UTF-8'); @endphp
@else @foreach ($value as $element) { $element = htmlentities($element, ENT_COMPAT | ENT_HTML401, 'UTF-8');
@endforeach @endif @endforeach