Alpine.js directives and WordPress sanitization
WordPress has functions with sensible defaults for when you want to filter untrusted HTML. To extend the default allowed list, you can use the wp_kses_allowed_html filter.
Mostly I see people reaching for this when dealing with complex SVG structures...
meszarosrob.hashnode.dev4 min read