Fix nav badge pills not being marked as HTML safe

This commit is contained in:
Karina Kwiatek 2023-01-05 14:32:04 +01:00
parent 00d25c0aff
commit 5db058cb73
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ module BootstrapHelper
("badge-pill" if options[:badge_pill]) ("badge-pill" if options[:badge_pill])
].compact.join(" ") ].compact.join(" ")
body += " #{content_tag(:span, options[:badge], class: badge_class)}" body += " #{content_tag(:span, options[:badge], class: badge_class)}".html_safe
end end
content_tag(:li, link_to(body.html_safe, path, class: "nav-link"), class: classes) content_tag(:li, link_to(body.html_safe, path, class: "nav-link"), class: classes)