Fix double-encoding issue?

I assume there’s something new in Laravel 5.7/5.8 that’s causing the double escaping. I’m not seeing it everywhere, which is more confusing, TBH. :-/
This commit is contained in:
snipe 2019-03-20 04:12:03 -07:00
parent 53419b33a5
commit d01f9a701c

View file

@ -2,7 +2,7 @@
{{-- Page title --}} {{-- Page title --}}
@section('title') @section('title')
{{ trans('admin/users/general.view_user', array('name' => $user->present()->fullName())) }} {{ trans('admin/users/general.view_user', ['name' => html_entity_decode($user->present()->fullName(), ENT_QUOTES | ENT_XML1, 'UTF-8')]) }}
@parent @parent
@stop @stop
@ -130,7 +130,7 @@
<tr> <tr>
<td class="text-nowrap">{{ trans('admin/users/table.name') }}</td> <td class="text-nowrap">{{ trans('admin/users/table.name') }}</td>
<td>{{ $user->present()->fullName() }}</td> <td>{{ html_entity_decode($user->present()->fullName(), ENT_QUOTES | ENT_XML1, 'UTF-8') }}</td>
</tr> </tr>
<tr> <tr>
<td class="text-nowrap">{{ trans('admin/users/table.username') }}</td> <td class="text-nowrap">{{ trans('admin/users/table.username') }}</td>