how to create a list of span for a given array
<p>Let's say I have an object which looks like that:</p>

<pre><code>var users = ['user1', 'user2'];
</code></pre>

<p>For this object I would like to create a list of span like that:</p>

<pre><code>"&lt;span&gt;user1&lt;/span&gt;&lt;span&gt;user2&lt;/span&gt;"
</code></pre>

<p>I did try the following code</p>

<pre><code>$('&lt;span/&gt;').text(users); 
</code></pre>

<p>but it does not work properly, any ideas?</p>
