strip html tags
Published: 15. January 2009 | Updated: 15. January 2009License: Microsoft Public License (MS-PL)
Categories: Network
Tags: C# Network Webforms
Import namespace
using System.Text.RegularExpressions;
Code
string page = "<html><head><title>My Title</title></head><body>Text</body></html>"; string text = Regex.Replace(page, "<[^>]*>", String.Empty);
| Send us feedback about this snippet » |





