<tr>
<td> </td>
<% candidates.each do |candidate| -%>
- <th><%= names[candidate] -%></th>
- <% end -%>
+ <th><%=h names[candidate] -%></th>
+ <% end -%>
+</tr>
+
<% candidates.each do |winner| -%>
<tr>
- <th><%= names[winner] %></th>
+ <th><%=h names[winner] %></th>
<% candidates.each do |loser| -%>
<% if winner == loser -%>
<td> -- </td>
<% end -%>
</tr>
<% end -%>
-
+</table>