public string GetListItemAsHtml(ListItem listItem)
{
string html = "<li>\n";
try
{
if (listItem != null)
{
if (listItem.Content != null)
{
html += this.GetIContentCollectionAsHtml(listItem.Content);
}
}
}
catch(Exception ex)
{
throw new AODLException("Exception while trying to build a HTML string from a ListItem object.", ex);
}
if (!html.Equals("<li>\n"))
html += "</li>\n";
else
html = "";
return html;
}