Select elements text and add a comma
<p>I'm trying to get some elements in my page using the DOM: <code>$('ul li').text()</code></p>

<p>And after that (or maybe during that) I would like to add a comma. In some cases the text that I'm getting has white spaces and other characters.</p>

<p>As a result I would love to get an array like this for example <code>["first text", "second element", "third"]</code></p>

<p>What would be the easier way to do that using javascript functions or jQuery?</p>

<p>Thanks in advance for your help.</p>
