Rails String to HTML

<% @string = "<h1>foo</h1>" %>

<%= @string.html_safe %>
Lioruby