diff options
Diffstat (limited to 'app/helpers/safe_format_helper.rb')
-rw-r--r-- | app/helpers/safe_format_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/safe_format_helper.rb b/app/helpers/safe_format_helper.rb index 71bfc9ecb40..9f8c5082c26 100644 --- a/app/helpers/safe_format_helper.rb +++ b/app/helpers/safe_format_helper.rb @@ -25,8 +25,8 @@ module SafeFormatHelper # Use `Kernel.format` to avoid conflicts with ViewComponent's `format`. Kernel.format( - html_escape_once(format), - args.transform_values { |value| html_escape(value) } + ERB::Util.html_escape_once(format), + args.transform_values { |value| ERB::Util.html_escape(value) } ).html_safe end |