/// <summary> /// Gets the unknow text content as HTML. /// Maybe it's a bibliographic index or something else. /// The method will try to find text that could be displayed. /// </summary> /// <param name="unknownTextContent">Content of the unknown text.</param> /// <returns></returns> public string GetUnknowTextContentAsHtml(UnknownTextContent unknownTextContent) { string html = ""; try { if (unknownTextContent != null) { if (unknownTextContent.Node != null) html += this.ReplaceControlNodes(unknownTextContent.Node.InnerText); } } catch(Exception ex) { throw new AODLException("Error rendering unknown text content as html", ex); } return html; }
/// <summary> /// Gets the unknow text content as HTML. /// Maybe it's a bibliographic index or something else. /// The method will try to find text that could be displayed. /// </summary> /// <param name="unknownTextContent">Content of the unknown text.</param> /// <returns></returns> public string GetUnknowTextContentAsHtml(UnknownTextContent unknownTextContent) { string html = ""; try { if(unknownTextContent != null) { if(unknownTextContent.Node != null) html += this.ReplaceControlNodes(unknownTextContent.Node.InnerText); } } catch(Exception ex) { } return html; }