Merge pull request #927 from Retrospring/fix/badge-pill-html-safe

Fix nav badge pills not being marked as HTML safe
This commit is contained in:
Karina Kwiatek 2023-01-05 13:34:29 +00:00 committed by GitHub
commit 33bb045d14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)