From 5db058cb736243cd54ec5c64461b7ffdb41b555b Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Thu, 5 Jan 2023 14:32:04 +0100 Subject: [PATCH] Fix nav badge pills not being marked as HTML safe --- app/helpers/bootstrap_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/bootstrap_helper.rb b/app/helpers/bootstrap_helper.rb index 6fe2cef2..9445de93 100644 --- a/app/helpers/bootstrap_helper.rb +++ b/app/helpers/bootstrap_helper.rb @@ -29,7 +29,7 @@ module BootstrapHelper ("badge-pill" if options[:badge_pill]) ].compact.join(" ") - body += " #{content_tag(:span, options[:badge], class: badge_class)}" + body += " #{content_tag(:span, options[:badge], class: badge_class)}".html_safe end content_tag(:li, link_to(body.html_safe, path, class: "nav-link"), class: classes)