title: Append or prepend opening/closing tags with jQuery
body: <p>I'm trying to wrap replies in a comment stream in a  like this:</p>
  
  <pre><code>$('li.comment').next('li.replycomment').append('&lt;ul class="thread"&gt;');
  $('li.replycomment').next('li.comment').prepend('&lt;/ul&gt;');
  </code></pre>
  
  <p>It doesn't work unfortunately. If I do the following it works no problem:</p>
  
  <pre><code> $('li.comment').next('li.replycomment').append('&lt;ul class="thread"&gt;&lt;li&gt;awesome&lt;/li&gt;&lt;/ul&gt;');
      $('li.replycomment').next('li.comment').prepend('&lt;ul&gt;&lt;li&gt;radical&lt;/li&gt;&lt;/ul&gt;');
  </code></pre>
  
  <p>Is there a reason jQuery won't let me insert an unclosed tag?</p>