Monday, January 7, 2008

Remove HTML from your code with Regular expression.

C# code :

Regex.Replace(lContent, "<[^>]*>", "");
lContent is the string that contained HTML

No comments:

Post a Comment