<% flash.each do |name, msg| %> <% next unless msg.is_a?(String) %>
<%= content_tag :div, name.to_s.end_with?('_html') ? msg.html_safe : h(msg).gsub("\n", "
").html_safe, id: "flash_#{name.to_s.sub(/_html$/, '')}" %>
<% end %>