Fix checkbox label containing links
The link tags were being stripped out by `content_tag`.
This commit is contained in:
@@ -21,7 +21,7 @@ class ConsulFormBuilder < FoundationRailsHelper::FormBuilder
|
||||
|
||||
def check_box(attribute, options = {})
|
||||
if options[:label] != false
|
||||
label = content_tag(:span, label_text(object, attribute, options[:label]), class: "checkbox")
|
||||
label = content_tag(:span, sanitize(label_text(object, attribute, options[:label]), class: "checkbox"))
|
||||
|
||||
super(attribute, options.merge(label: label, label_options: label_options_for(options)))
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user