diff --git a/app/helpers/input_sanitize_helper.rb b/app/helpers/input_sanitize_helper.rb index 35b56be3d..1a4d1b19d 100644 --- a/app/helpers/input_sanitize_helper.rb +++ b/app/helpers/input_sanitize_helper.rb @@ -15,9 +15,9 @@ module InputSanitizeHelper ERB::Util.html_escape(text) end - def custom_auto_link(text, simple_format = true, org = nil) + def custom_auto_link(text, simple_format = true, org = nil, wrapper_tag = {}) text = if simple_format - simple_format(sanitize_input(text)) + simple_format(sanitize_input(text), {}, wrapper_tag) else sanitize_input(text) end diff --git a/app/views/reports/elements/_step_checklist_element.html.erb b/app/views/reports/elements/_step_checklist_element.html.erb index d674fd35e..1c24cdecf 100644 --- a/app/views/reports/elements/_step_checklist_element.html.erb +++ b/app/views/reports/elements/_step_checklist_element.html.erb @@ -24,7 +24,7 @@
  • /> - <%= custom_auto_link(item.text) %> + <%= custom_auto_link(item.text, true, nil, {wrapper_tag: "span"}) %>
  • <% end %>