Skip to content

Commit

Permalink
Trim after stripping HTML tags
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed Aug 30, 2024
1 parent a2b207c commit 143e9b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
@endif

@php
$title = strip_tags(($livewire ?? null)?->getTitle() ?? '');
$brandName = strip_tags(filament()->getBrandName());
$title = trim(strip_tags(($livewire ?? null)?->getTitle() ?? ''));
$brandName = trim(strip_tags(filament()->getBrandName()));
@endphp

<title>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
>
<{{ $sortable ? 'button' : 'span' }}
@if ($sortable)
aria-label="{{ strip_tags($slot) }}"
aria-label="{{ trim(strip_tags($slot)) }}"
type="button"
wire:click="sortTable('{{ $name }}')"
@endif
Expand Down

0 comments on commit 143e9b8

Please sign in to comment.