TextUtilsGetSafeMarkdownHtml Method (String, String) |
Converts a Markdown text into a safe HTML document stored in a XmlDocument.
Tags that are not white-listed are removed.
Namespace:
PDTec.IceNet.Sdk.Utils
Assembly:
PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax public static XmlDocument GetSafeMarkdownHtml(
string markupText,
string containerElementName
)
Parameters
- markupText
- Type: SystemString
The text in Markdown format. - containerElementName
- Type: SystemString
The name of the XML document element.
Return Value
Type:
XmlDocumentAn
XmlDocument that contains the HTML content if the Markdown conversion has been successful; otherwise
null.
See Also