AODL.Document.Export.Html.HTMLContentBuilder.GetUnknowContentAsHtml C# (CSharp) Метод

GetUnknowContentAsHtml() публичный Метод

Gets the unknow content as HTML. AODL will try to search inside the node of the UnknownContent object for content this could be displayed.
public GetUnknowContentAsHtml ( UnknownContent unknownContent ) : string
unknownContent AODL.Document.Content.UnknownContent Content of the unknown.
Результат string
		public string GetUnknowContentAsHtml(UnknownContent unknownContent)
		{
			string html					= "<span>\n";

			try
			{
				if (unknownContent != null)
				{
					if (unknownContent.Node != null)
					{
						foreach(XmlNode node in unknownContent.Node.ChildNodes)
							if (node.InnerText != null)
								html	+= this.ReplaceControlNodes(node.InnerText+" ");
					}
				}
			}
			catch(Exception ex)
			{
				throw new AODLException("Exception while trying to build a HTML string from a UnknownContent object.", ex);
			}

			if (!html.Equals("<span>\n"))
				html				+= "</span>\n";
			else
				html				= "";

			return html;
		}