コード例 #1
0
 /// <summary>
 /// Strips all markup tags from the provided string
 /// </summary>
 /// <param name="markup">A string with markup</param>
 /// <returns>Text without markup</returns>
 /// <example>
 /// Example markup:
 /// &lt;html&gt;&lt;body style="color: black;"&gt;&lt;p&gt;This is some text&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;
 /// Result after markup-strip:
 /// This is some text
 /// </example>
 /// <remarks>This method can be used as an extension method.</remarks>
 public static string StripMarkup(this string markup)
 {
     return(MarkupHelper.StripMarkup(markup));
 }