Added option for custom class in ul element and allowing to show html content in li element