© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
Toni

html content stripped out of modal action

Hi,
This is the action of my dashboard:
    public function getHeaderActions(): array
    {
        return [
            Action::make('info')
                ->label(__('dashboard.info'))
                ->icon('fal-circle-info')
                ->modalHeading(__('dashboard.infoTitle'))
                ->slideOver()
                ->modalSubmitAction(false)
                ->modalContent(function() {
                    return view('dashboard.info', [
                        'studyInformation' => app(StudySettings::class)->description,
                    ]);
                }),
        ];
    }
    public function getHeaderActions(): array
    {
        return [
            Action::make('info')
                ->label(__('dashboard.info'))
                ->icon('fal-circle-info')
                ->modalHeading(__('dashboard.infoTitle'))
                ->slideOver()
                ->modalSubmitAction(false)
                ->modalContent(function() {
                    return view('dashboard.info', [
                        'studyInformation' => app(StudySettings::class)->description,
                    ]);
                }),
        ];
    }


This is the content of the view:
<div>
    {!! $studyInformation !!}
</div>
<div>
    {!! $studyInformation !!}
</div>


desire.png shows how it should look like and reality.png shows how it looks. I can't figure out where the html-tags are stripped.

The html content is written with the TipTap Editor and stored as setting with spatie-settings as html string.

Thank you in advance
desire.png
reality.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Action in custom modal content: Update modal content after action performed?
FilamentFFilament / ❓┊help
2y ago
Using scripts in action modal content
FilamentFFilament / ❓┊help
3y ago
Modal action
FilamentFFilament / ❓┊help
2y ago
Using Torchlight in Action with custom modal content
FilamentFFilament / ❓┊help
3y ago