title: How do I show formatted text in rails text area?
body: <p>I'm using rails form. In that form, I've a <a href="http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-text_area" rel="nofollow">text_area</a>. I want to show pre-filled data in text area of rails. The data is html content.</p>
  
  <p>I tried following,</p>
  
  <pre><code>&lt;% test_val= "&lt;h1&gt;Test Value&lt;/h1&gt;" %&gt;
  &lt;%= form.text_area(:myval, :value =&gt; test_val.html_safe, size: '30x10', :style =&gt; 'border: 10;') %&gt;
  </code></pre>
  
  <p><code>myval</code> is my form variable. But instead of printing <code>Test Value</code> in bold and bigger font in text area, t showed <code>&lt;h1&gt;Test Value&lt;/h1&gt;</code>. I want the content in HTML tag to be printed with HTML formatting. Is it possible? If yes, how do I achieve it?</p>
  
  <p><strong>p.s.</strong> I'm using ruby v1.9.3 &amp; rails 3.1.0</p>