What's Changed
- Rich-text field labels with HTML sanitizing by @scottgrayson in #89
Added
- Field labels can hold formatted text (headings, paragraphs, lists, bold, links) via a new Format label toggle in the field editor. Stored in the existing
labelcolumn; no migration.
Security
- Fixes a stored-XSS issue: field labels were previously rendered unsanitized. All labels containing HTML are now sanitized with
symfony/html-sanitizer(scripts, event handlers,style, iframes, forms, images andjavascript:/data:URLs are removed).
Behaviour note
- Plain labels render exactly as before. A label containing a literal
<that looks like a tag (for example<name>) is now treated as HTML and sanitized.
Other
- Adds
symfony/html-sanitizer(^7.0|^8.0) as a dependency. - Adds an existing larastan error (
FormSubmissionNotificationview-string) tophpstan-baseline.neon.
Full Changelog: v4.3.7...v4.4.0