FilamentF
Filament2y ago
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,
                    ]);
                }),
        ];
    }


This is the content of the view:
<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
Was this page helpful?