String without the html tags: strip html from string(community-review.com)
submitted by
urziceanu(25) 2 years, 9 months ago
This function returns a string without the html tags
private static readonly Regex STRIP_HTML = new Regex("<[^>]*>", RegexOptions.Compiled);
/// <summary>
/// Strips all HTML tags from the specified string.
/// </summary>
/// <param name="html">The string containing HTML</param>
/// <returns>A string without HTML tags</returns>
public static string StripHtml(string html)
|category: C#
|Views: 10
tags:
C# another
Everyones tags:
Your Tags: