Skip to content

Commit

Permalink
Merge pull request #8025 from bernhardh/fix/fix-html-titles
Browse files Browse the repository at this point in the history
FIX: Usage of HTML Titles
  • Loading branch information
danharrin authored Aug 24, 2023
2 parents 3bdbd70 + 7bee752 commit 2d9375b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
@endif

<title>
{{ filled($title = $livewire->getTitle()) ? "{$title} - " : null }}
{{ filled($title = strip_tags($livewire->getTitle())) ? "{$title} - " : null }}
{{ filament()->getBrandName() }}
</title>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Filament\Resources\Pages\Concerns;

use Illuminate\Contracts\Support\Htmlable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Support\Str;
Expand All @@ -28,7 +29,7 @@ public function getRecord(): Model
return $this->record;
}

public function getRecordTitle(): string
public function getRecordTitle(): string | Htmlable
{
$resource = static::getResource();

Expand Down

0 comments on commit 2d9375b

Please sign in to comment.