From 38517589abd4ab8c0274e119e213e9dbfe42cb71 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Thu, 27 Mar 2025 04:29:31 +0300 Subject: [PATCH] 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. --- lib/rich_text.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5