Alpine.js directives and WordPress sanitization
Oct 8, 2020 · 4 min read · 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...
Join discussion