Winners

Online Techies

Please login to be able to chat.

Usertrace

Please log in.
Welcome, Guest
Please Login or Register.    Lost Password?

How to remove HTML from String
(1 viewing) (1) Guest
Hyderabad Techies Forum - C# .NET
Go to bottomPage: 1
TOPIC: How to remove HTML from String
#2259
How to remove HTML from String 6 Months ago Karma: 2
public string RemoveHTML(string strSource){
//Here strSource is string containing HTML Code

return Server.HtmlDecode(System.Text.RegularExpressions.Regex.Replace(strSource, "<(.|\n)*?>", ""));
}

string strValue = RemoveHTML("Tester<html><table>Programmer</table></html>");
meetdine
Platinum Boarder
Posts: 800
graph
Points: 161020
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2273
Re: How to remove HTML from String 6 Months ago Karma: 1
Thanks for sharing
surekha.ch20
Platinum Boarder
Posts: 646
graphgraph
Points: 80521
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2423
Re:How to remove HTML from String 5 Months, 4 Weeks ago Karma: -1
good one
Ramachandra
Senior Boarder
Posts: 50
graphgraph
Points: 64787
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2707
Re: How to remove HTML from String 5 Months, 3 Weeks ago Karma: 0
Nice
sureshprasu
Platinum Boarder
Posts: 397
graphgraph
Points: 75470
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1