Fixed #8797 - use html_entity_decode in fullName presenter for User

This commit is contained in:
snipe 2020-11-25 08:54:23 -08:00
parent 820a39cc90
commit f475bdbb2d
2 changed files with 2 additions and 2 deletions

View file

@ -301,7 +301,7 @@ class UserPresenter extends Presenter
*/ */
public function fullName() public function fullName()
{ {
return "{$this->first_name} {$this->last_name}"; return html_entity_decode($this->first_name.' '.$this->last_name, ENT_QUOTES | ENT_XML1, 'UTF-8');
} }
/** /**

View file

@ -2,7 +2,7 @@
{{-- Page title --}} {{-- Page title --}}
@section('title') @section('title')
{{ trans('admin/users/general.view_user', ['name' => html_entity_decode($user->present()->fullName(), ENT_QUOTES | ENT_XML1, 'UTF-8')]) }} {{ trans('admin/users/general.view_user', ['name' => $user->present()->fullName()]) }}
@parent @parent
@stop @stop