[openstreetmap/openstreetmap-website] Remove extra sanitize after simple_format RichText::HTML (PR #5852)

Anton Khorev notifications at github.com
Thu Mar 27 01:31:07 UTC 2025


`simple_format` already calls `sanitize` internally. We don't call `sanitize` again from a similar place of `RichText::Text`.

You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5852

-- Commit Summary --

  * Remove extra sanitize after simple_format RichText::HTML

-- File Changes --

    M lib/rich_text.rb (2)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5852.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5852.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5852
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5852 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250326/a55396a7/attachment.htm>


More information about the rails-dev mailing list