Fix nav badge pills not being marked as HTML safe
This commit is contained in:
parent
00d25c0aff
commit
5db058cb73
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue