title: Jquery append - Opening and closing a tag
body: <p>I have a jquery block like this. After the html is rendered i see that the <code>&lt;article&gt;</code> tag opens and closes immediately, same way, <code>&lt;div class=bar&gt;</code> opens and closes immediately. Am i doing anything wrong in his piece of code. Any better way to implement this one?</p>
  
  <p>Thanks</p>
  
  <pre><code>$.each(filterresult.result, function(index, value) {
                                $('#newslist')
                                .append('&lt;article class="preview"&gt;')
                                .append('&lt;div class="bar"&gt;')
                                .append('&lt;span class="left"&gt;&lt;small&gt;').append(value.dTime)
                                .append('&lt;/small&gt;&lt;/span&gt;&lt;span class="right text-sm gray-text"&gt;')
                                .append(value.author)
                                .append('&lt;/span&gt;&lt;/div&gt;').append('&lt;h3 class="tighter"&gt;&lt;a class="black" href="#"&gt;')
                                .append(value.title)
                                .append('&lt;/a&gt;&lt;/h3')
                                .append('&lt;div class="media-block medium"&gt;&lt;figure&gt;&lt;span class="box blue"&gt;Products &amp; Services&lt;/span&gt;&lt;img src="http://placeholder.levelfivesolutions.net/140x105.png" alt="" title="" /&gt;&lt;/figure&gt;')
                                .append('&lt;div class="details"&gt;')
                                .append(value.teaser)
                                .append('&lt;div class="bar"&gt;&lt;span class="left"&gt;&lt;a class="blue" href="#"&gt;&lt;span class="gray-text"&gt;&amp;raquo;&lt;/span&gt; Read More&lt;/a&gt;&lt;/span&gt;&lt;span class="right text-sm"&gt;&lt;a class="comment-icon" href="#"&gt;12 Comments&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;')
                                .append('&lt;/div&gt;')
                                .append('&lt;/div&gt;')
                                .append('&lt;/article&gt;');    
                      });
  </code></pre>