How to remove empty li from ul?

If li contains normal text then you can use:

 

In case, some of your li contains html tags then you can use:

 

 

Share This:

Leave a Reply

Your email address will not be published. Required fields are marked *