diff --git a/app/datatables/protocols_datatable.rb b/app/datatables/protocols_datatable.rb
index a4d36c47e..db57390f9 100644
--- a/app/datatables/protocols_datatable.rb
+++ b/app/datatables/protocols_datatable.rb
@@ -190,9 +190,11 @@ class ProtocolsDatatable < AjaxDatatablesRails::Base
kws = record.protocol_keywords_str.split(", ")
res = []
kws.sort_by{ |word| word.downcase }.each do |kw|
- res << "#{kw}"
+ sanitized_kw = sanitize_input(kw)
+ res << "#{sanitized_kw}"
end
- sanitize_input(res.join(', '))
+ res.join(', ')
end
end