© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
exactwebitesolutions

Prevent extraAttributes escaping

How to prevent greater than expression from being escaped?

Action::make('remove')
    ->extraAttributes([
        'x-show' => 'selectedResources.length > 0',
    ])
Action::make('remove')
    ->extraAttributes([
        'x-show' => 'selectedResources.length > 0',
    ])
Screenshot_2024-06-12_at_08.59.11.png
Solution
new HtmlString('selectedResources.length > 0')
new HtmlString('selectedResources.length > 0')

?
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Clean way to avoid escaping of quotes in JS in extraAttributes
FilamentFFilament / ❓┊help
2y ago
How to prevent escaping & wrapping <iframe> HTML in TipTap Editor?
FilamentFFilament / ❓┊help
7mo ago
extraAttributes in v3
FilamentFFilament / ❓┊help
2y ago
extraAttributes on Groups
FilamentFFilament / ❓┊help
3y ago