Programming Journal C#, Java, SQL and to a lesser extent HTML, CSS, XML, and regex. I made this so other programmers could benefit from my experience.

Tuesday, December 23, 2008

Remove HTML Tags

Remove HTML Tags from a string:

public static string RemoveHtml(string txt)
return Regex.Replace(txt, @"<[^>]*>", string.Empty);


1 comment:

Anonymous said...

Thank you, techron,
That's a good one! Working great !