Prevent empty  item in Views (HTML List format) I'm using the HTML List format for my View, which has three fields (nid and title, both excluded and Custom Text).

The content of Custom Text is as follows:

&lt;li class="inspiration portfolio" data-content="#colio_c[nid]"&gt;
&lt;a class="button colio-link" href="#"&gt;View Project&lt;/a&gt;
&lt;h4&gt;&lt;a class="colio-link" href="#"&gt;[title]&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;Lorem Ipsum&lt;/p&gt;
&lt;/li&gt;


I've noticed that using the &lt;li&gt; item in my Custom Text field will result in an empty &lt;li&gt; item wrapping my content. As such, the output I get from this is as follows: 

&lt;div class="view-content"&gt;
&lt;div class="item-list portfolio"&gt; 
&lt;ul class="list"&gt;          
&lt;li class=""&gt;  
&lt;li class="inspiration portfolio" data-content="#colio_c7"&gt;
&lt;a class="button colio-link" href="#"&gt;View Project&lt;/a&gt;
&lt;h4&gt;&lt;a class="colio-link" href="#"&gt;Item 1&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;Lorem Ipsum&lt;/p&gt;
&lt;/li&gt;&lt;/li&gt;
&lt;li class=""&gt;  
&lt;li class="inspiration portfolio" data-content="#colio_c8"&gt;
&lt;a class="button colio-link" href="#"&gt;View Project&lt;/a&gt;
&lt;h4&gt;&lt;a class="colio-link" href="#"&gt;Item 2&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;Lorem Ipsum&lt;/p&gt;
&lt;/li&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;


My question to you is: How do I remove those empty &lt;li class=""&gt; tags? 

I tried to set wrapping element to none but to no avail. I've also attempted to do it with an unformatted list and create everything in custom text but then I'd have a &lt;ul&gt; for each row and I do not have access to data-content="#colio_c[nid] that way. 

An export of my view is available at http://ideone.com/KyNGO4
It sounds like you want to override the row style output so that it doesn't output the wrapping li tag. There are other posts on here asking about that process. To get started though, in views, expand the Advanced section and click "Theme" - a window will then pop up showing you information on the template files for your theme.