/// <summary> /// Gets the markdown converted body of the tag that is sanizited. /// </summary> /// <param name="transformer">The Markdown object used to convert markdown to html. Optional.</param> /// <param name="sanitizer">The IHtmlSanitizer object used to sanitize the html produced by the converter.</param> /// <returns>A string containing the Html that was produced and then sanitized from the markdown.</returns> public string GetSanitizedBody(MarkdownSharp.Markdown transformer = null, IHtmlSanitizer sanitizer = null) { if (sanitizer == null) { return new HtmlSanitizer().GetHtml(GetConvertedBody(transformer)); } else { return sanitizer.GetHtml(GetConvertedBody(transformer)); } }