AODL.Document.Content.Text.ListItem.GetHtml C# (CSharp) Method

GetHtml() public method

Return the content as Html string
public GetHtml ( ) : string
return string
		public string GetHtml()
		{
			string html			= "<li>\n";

			//Support for vers. < 1.1.1.0
//			if (this.Paragraph != null)
//			{
//				string pHtml	= this.Paragraph.GetHtml();
//				if (pHtml != "<p >\n&nbsp;</p>\n" 
//					&& !pHtml.StartsWith("<p >\n</p>")
//					&& pHtml != "<p >\n </p>\n"
//					&& pHtml != "<p >\n</p>\n")
//					html		+= pHtml+"\n";
//			}

			foreach(IContent content in this.Content)
				if (content is IHtml)
					html		+= ((IHtml)content).GetHtml();

			html				+= "</li>\n";

			return html;
		}