/// <summary> /// Removes non-body elements from HTML and then strips all markup and returns the result. /// </summary> /// <param name="html">The HTML.</param> /// <returns>Body text without markup</returns> /// <example> /// Example markup: /// <html><head><title>Document Title</title><head><body style="color: black;"><p>This is some text</p></body></html> /// Result after markup-strip: /// This is some text /// </example> /// <remarks> /// This method is very helpful whenever a potentially complete HTML string needs to be /// displayed as a portion of a larger HTML output. /// </remarks> public static string GetStrippedBodyOnly(this string html) { return(MarkupHelper.GetStrippedBodyOnly(html)); }