diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index a1091c7..091d79b 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1680,7 +1680,7 @@ module ApplicationHelper editor_attributes = { class: 'cell-editor', data: { value: raw_value.to_s } } # create the control but add the original value to set the width and height - editor_value = content_tag(:span, CGI::escapeHTML(value), class: 'value') + editor_value = content_tag(:div, value, class: 'value') if (options[:column_options] || {})[column].present? value = (editor_value.html_safe + select_tag(column, options_for_select([['', '']] + options[:column_options][column], raw_value), editor_attributes)).html_safe elsif data[:column_types][column] == :text