From: Anton Khorev Date: Thu, 27 Mar 2025 01:29:31 +0000 (+0300) Subject: Remove extra sanitize after simple_format RichText::HTML X-Git-Tag: live~76^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/38517589abd4ab8c0274e119e213e9dbfe42cb71?ds=inline;hp=-c Remove extra sanitize after simple_format RichText::HTML simple_format already calls sanitize internally. We don't call sanitize again from a similar place of RichText::Text. --- 38517589abd4ab8c0274e119e213e9dbfe42cb71 diff --git a/lib/rich_text.rb b/lib/rich_text.rb index d9c799611..3f5d9f6ba 100644 --- a/lib/rich_text.rb +++ b/lib/rich_text.rb @@ -88,7 +88,7 @@ module RichText class HTML < Base def to_html - linkify(sanitize(simple_format(self))) + linkify(simple_format(self)) end def to_text