diff --git a/app/Http/Controllers/Settings/HomeSettings.php b/app/Http/Controllers/Settings/HomeSettings.php index f99d92ce..2dfa0de3 100644 --- a/app/Http/Controllers/Settings/HomeSettings.php +++ b/app/Http/Controllers/Settings/HomeSettings.php @@ -42,7 +42,7 @@ trait HomeSettings $changes = false; $name = strip_tags($request->input('name')); - $bio = $request->filled('bio') ? Purify::clean($request->input('bio')) : null; + $bio = $request->filled('bio') ? strip_tags(Purify::clean($request->input('bio'))) : null; $website = $request->input('website'); $email = $request->input('email'); $user = Auth::user(); diff --git a/config/purify.php b/config/purify.php index 36915eb1..5c09c28c 100644 --- a/config/purify.php +++ b/config/purify.php @@ -67,7 +67,7 @@ return [ | */ - 'HTML.Allowed' => 'a[href|title|rel],p,strong,em,i,u,h1,h2,h3,h4,h5,ul,ol,li', + 'HTML.Allowed' => 'a[href|title|rel],p,strong,em,i,u,h1,h2,h3,h4,h5,ul,ol,li,br', /* |-------------------------------------------------------------------------- diff --git a/resources/views/settings/home.blade.php b/resources/views/settings/home.blade.php index 1a47f30f..115ac505 100644 --- a/resources/views/settings/home.blade.php +++ b/resources/views/settings/home.blade.php @@ -128,12 +128,8 @@ @push('scripts') @endpush