コード例 #1
0
 /// <summary>
 /// Inspects the provided HTML for start and end body-tags.
 /// If those tags are present, only the content within the body tags (inner HTML)
 /// is included int he return value.
 /// </summary>
 /// <param name="html">The HTML.</param>
 /// <returns>Body portion of the HTML</returns>
 /// <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 GetBodyOnly(this string html)
 {
     return(MarkupHelper.GetBodyOnly(html));
 }