raw and h provide ways to selectively apply this default behavior.
<%= raw user_values_array.map {|user_value| h user_value }.join('<br />') %>
Even better, Rails 3.1 introduced safe_join(array, sep) for this purpose. Used with html_safe , it can do what you need.
<%= safe_join(user_values_array, "<br />".html_safe) %>
Documentation
source share