## Rails 7.2.0 (August 09, 2024) ## * Only sanitize `content` attribute when present in attachments. *Petrik de Heus* * Sanitize ActionText HTML ContentAttachment in Trix edit view [CVE-2024-32464] *Aaron Patterson*, *Zack Deveau* * Use `includes` instead of `eager_load` for `with_all_rich_text`. *Petrik de Heus* * Delegate `ActionText::Content#deconstruct` to `Nokogiri::XML::DocumentFragment#elements`. ```ruby content = ActionText::Content.new <<~HTML

Hello, world

The body
HTML content => [h1, div] assert_pattern { h1 => { content: "Hello, world" } } assert_pattern { div => { content: "The body" } } ``` *Sean Doyle* * Fix all Action Text database related models to respect `ActiveRecord::Base.table_name_prefix` configuration. *Chedli Bourguiba* * Compile ESM package that can be used directly in the browser as actiontext.esm.js *Matias Grunberg* * Fix using actiontext.js with Sprockets. *Matias Grunberg* * Upgrade Trix to 2.0.7 *Hartley McGuire* * Fix using Trix with Sprockets. *Hartley McGuire* Please check [7-1-stable](https://github.com/rails/rails/blob/7-1-stable/actiontext/CHANGELOG.md) for previous changes.