Author Build Commit PR
flavorjones 25674 17ce2c8 n/a
Repo Branch
rails/rails main
Message
Document where `sanitize` and `highlight` output is safe (#59723) The `sanitize` docs said its output was safe only as element content, without saying which content, and the `highlight` docs, although `highlight` returns the same markup, said nothing. State in both that the output is safe only where the parser applies the "in body" insertion mode rules, and name the common contexts where it is not.

/api

Reference documentation

/guides

In-depth tutorials