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;
}