Convert textarea content to html
<p>I need to make a simple Javascript converter, which would turn <code>&lt;textarea&gt;</code> input into html-formatted list.<br></p>

<p>This is how a sample input would look:</p>

<pre><code>Brand: Brand1
  Model1 /Model2 /Model3 /Model4 /Model5 /Model6 /
Brand: Brand2
  Model1 /Model2 /Model3 /Model4 /Model5 /Model6 /
</code></pre>

<p>And this would be the html after conversion:</p>

<pre><code>&lt;h3&gt;Brand1&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Model1&lt;/li&gt;
  &lt;li&gt;Model2&lt;/li&gt;
  &lt;li&gt;Model3&lt;/li&gt;
  &lt;li&gt;Model4&lt;/li&gt;
  &lt;li&gt;Model5&lt;/li&gt;
  &lt;li&gt;Model6&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Brand2&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Model1&lt;/li&gt;
  &lt;li&gt;Model2&lt;/li&gt;
  &lt;li&gt;Model3&lt;/li&gt;
  &lt;li&gt;Model4&lt;/li&gt;
  &lt;li&gt;Model5&lt;/li&gt;
  &lt;li&gt;Model6&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>Could any one provide some sample code to do that?
Thanks a lot</p>
