How to format a TextColumn
Hello, i need to remove html tags from a specific column.
How to remove the html tags from
How to remove the html tags from
body ->formatStateUsing not working for me. TextColumn::make('body')
->label(__('Body'))
->searchable()
->visibleFrom('md'),use Filament\Tables\Columns\TextColumn;
use Illuminate\Support\HtmlString;
TextColumn::make('description')
->html()
->formatStateUsing(fn (string $state) => strip_tags($state))


->formatStateUsing(fn (string $state) => dd($stae)), do nothinguse Filament\Tables\Columns\TextColumn;
use Illuminate\Support\HtmlString;
TextColumn::make('description')
->formatStateUsing(fn (string $state) => strip_tags($state)) TextColumn::make('body')
->formatStateUsing(fn (string $state) => strip_tags($state)),use Filament\Tables\Columns\TextColumn;
use Illuminate\Support\HtmlString;
TextColumn::make('description')
->formatStateUsing(fn (string $state) => strip_tags(html_entity_decode($state)))use Filament\Tables\Columns\TextColumn;
use Illuminate\Support\HtmlString;
TextColumn::make('description')
->html()
->formatStateUsing(fn (string $state) => strip_tags($state))