Safer HTML and Class Controls in Theme Block Rich Text
Rich text in theme blocks now adds HTML sanitisation, CSS class controls, and structured block output on top of the existing relationship-aware editor.
Rich text in theme-managed blocks already understood relationships and media. This release builds on that foundation with tighter control over the markup itself: HTML is now sanitised on the way in, editors can apply CSS classes to formatted content, and output is emitted as structured blocks rather than a single flattened string.
For editors
Class controls let you attach styling hooks to headings, callouts, and other formatted passages, so the same rich text field can render distinct visual treatments across layouts without a code snippet fallback.
For theme developers
Sanitised HTML and structured block output give you a predictable, machine-readable shape to template against. You can target individual blocks and their classes in theme markup, rather than parsing an opaque HTML string.