title: Running script inside a textarea to print a value
body: <p>Well the question is quite simple, How can I run the <code>&lt;script&gt;</code> tags inside a textarea so that I can use <code>document.write</code> to print out a value?</p>
  
  <p>Like:</p>
  
  <pre><code>&lt;textarea&gt;
      &lt;script&gt;
          document.write("A");
      &lt;/script&gt;
  &lt;/textarea&gt;
  </code></pre>
  
  <p>Doing this would just print out <code>&lt;script&gt;document.write("A");&lt;/script&gt;</code> into the textarea.</p>
  
  <p>See here: <kbd><a href="http://jsfiddle.net/mareebsiddiqui/e4gA3/" rel="nofollow">JSFIDDLE</a></kbd></p>
  
  <p>But I want to print A inside the textarea how can I do that?</p>