As i said, try using either html_safe
or raw
<%= sent_array.join('').html_safe %>
OR
<%= raw sent_array.join('') %>
OR
<%== sent_array.join('') %>
<%==
is equivalent to raw
For more details,see these Guides. In your case,you can also refer to safe_join