Jospeh
XSS Protection with "amidesfahani/filament-tinyeditor" in Laravel Filament V3
TinyEditor::make('description')
->label('Content')
->extraInputAttributes(['style' => 'height: 500px;'])
->required()
->afterStateUpdated(function ($state, callable $set) {
return Purifier::clean($state);
}),
Is this approach correct?
7 replies