diff --git a/app/views/common/_diff.rhtml b/app/views/common/_diff.rhtml
index 03b06a0ce..9967a6810 100644
--- a/app/views/common/_diff.rhtml
+++ b/app/views/common/_diff.rhtml
@@ -5,7 +5,7 @@
<% if diff.diff_type == 'sbs' -%>
-| <%=to_utf8 table_file.file_name %> |
+| <%=h(to_utf8(table_file.file_name)) %> |
<% table_file.each_line do |spacing, line| -%>
@@ -31,7 +31,7 @@
<% else -%>
-| <%=to_utf8 table_file.file_name %> |
+| <%=h(to_utf8(table_file.file_name)) %> |
<% table_file.each_line do |spacing, line| %>