How to remove HTML tags in content or string?
We can remove HTML tags in string; it is little bit easy using Regex in .net. Here is the code for removing HTML tags for content or string. Code is in C#.net.
First import namespace called System.Text.RegularExpressions.
Code:-
using System.Text.RegularExpressions;
Then create one method like this below
Code :-
#region reusable regex's
protected static Regex htmlRegex = new Regex("<[^>]+>|\ \;", RegexOptions.IgnoreCase | RegexOption...
More