diff --git a/app/views/hyrax/batch_edits/edit.html.erb b/app/views/hyrax/batch_edits/edit.html.erb
index 34cefe2292..c689ff89fd 100644
--- a/app/views/hyrax/batch_edits/edit.html.erb
+++ b/app/views/hyrax/batch_edits/edit.html.erb
@@ -2,7 +2,7 @@
Changes will be applied to: (<%= @form.names.size %> works)
- <%= @form.names.join(", ").html_safe %>
+ <%= sanitize @form.names.join(", ") %>
diff --git a/app/views/hyrax/dashboard/collections/_flash_msg.html.erb b/app/views/hyrax/dashboard/collections/_flash_msg.html.erb
index 5a0bfdc9a4..f499bfc8df 100644
--- a/app/views/hyrax/dashboard/collections/_flash_msg.html.erb
+++ b/app/views/hyrax/dashboard/collections/_flash_msg.html.erb
@@ -2,7 +2,7 @@
<% if flash[type].present? %>
- <%= safe_join(Array.wrap(flash[type]).map(&:html_safe), '
'.html_safe) %>
+ <%= sanitize safe_join(Array.wrap(flash[type]), tag(:br)) %>
<% flash.delete(type) %>
<% end %>
diff --git a/app/views/hyrax/file_sets/_extra_fields_modal.html.erb b/app/views/hyrax/file_sets/_extra_fields_modal.html.erb
index fbe48b8a8d..d5cec62346 100644
--- a/app/views/hyrax/file_sets/_extra_fields_modal.html.erb
+++ b/app/views/hyrax/file_sets/_extra_fields_modal.html.erb
@@ -11,7 +11,7 @@
- <%= values.join("
").html_safe %>
+ <%= sanitize values.join("
") %>