Click here to Skip to main content
15,922,584 members
Home / Discussions / C#
   

C#

 
GeneralRe: Strange Question.. Pin
hammackj15-Oct-03 3:22
hammackj15-Oct-03 3:22 
GeneralRe: Strange Question.. Pin
Randhir Sinha15-Oct-03 3:51
Randhir Sinha15-Oct-03 3:51 
GeneralRe: Strange Question.. Pin
hammackj15-Oct-03 4:02
hammackj15-Oct-03 4:02 
GeneralRe: Strange Question.. Pin
Corinna John15-Oct-03 7:23
Corinna John15-Oct-03 7:23 
GeneralIDocHostUIHandler and WebBrowser Context Menu Pin
J. Dunlap14-Oct-03 18:14
J. Dunlap14-Oct-03 18:14 
GeneralSolved! Pin
J. Dunlap14-Oct-03 18:41
J. Dunlap14-Oct-03 18:41 
GeneralRe: Solved! Pin
w1424319-Jul-04 20:32
w1424319-Jul-04 20:32 
GeneralImageList in a TreeView -- Pin
Blaise L'amort14-Oct-03 13:02
Blaise L'amort14-Oct-03 13:02 
QuestionBinaryReader/Writer at same time? Pin
Joe Woodbury14-Oct-03 11:12
professionalJoe Woodbury14-Oct-03 11:12 
AnswerRe: BinaryReader/Writer at same time? Pin
Corinna John14-Oct-03 19:55
Corinna John14-Oct-03 19:55 
GeneralRe: BinaryReader/Writer at same time? Pin
Joe Woodbury15-Oct-03 4:26
professionalJoe Woodbury15-Oct-03 4:26 
GeneralI used to use ResourceStrings Pin
Anders Molin14-Oct-03 9:46
professionalAnders Molin14-Oct-03 9:46 
GeneralRe: I used to use ResourceStrings Pin
Ranjan Banerji14-Oct-03 10:19
Ranjan Banerji14-Oct-03 10:19 
GeneralRe: I used to use ResourceStrings Pin
rod termaat15-Oct-03 5:11
rod termaat15-Oct-03 5:11 
GeneralEventHandler Pin
Matias Szulman14-Oct-03 9:31
Matias Szulman14-Oct-03 9:31 
GeneralRe: EventHandler Pin
Meysam Mahfouzi14-Oct-03 17:52
Meysam Mahfouzi14-Oct-03 17:52 
QuestionWhich XML format should I use? Pin
Alvaro Mendez14-Oct-03 9:23
Alvaro Mendez14-Oct-03 9:23 
AnswerRe: Which XML format should I use? Pin
Ryan_Roberts14-Oct-03 9:48
Ryan_Roberts14-Oct-03 9:48 
GeneralRe: Which XML format should I use? Pin
David Stone14-Oct-03 13:16
sitebuilderDavid Stone14-Oct-03 13:16 
AnswerRe: Which XML format should I use? Pin
Nick Parker15-Oct-03 15:46
protectorNick Parker15-Oct-03 15:46 
GeneralMasking input in a datagrid Pin
Wjousts14-Oct-03 7:23
Wjousts14-Oct-03 7:23 
GeneralRe: Masking input in a datagrid Pin
Wjousts15-Oct-03 5:52
Wjousts15-Oct-03 5:52 
General.net dll compatibility Pin
mikemilano14-Oct-03 6:45
mikemilano14-Oct-03 6:45 
GeneralRe: .net dll compatibility Pin
leppie14-Oct-03 7:58
leppie14-Oct-03 7:58 
Generalproblems with html page detagging Pin
ttornade14-Oct-03 6:01
ttornade14-Oct-03 6:01 
Hi all,

I have to detag an HTML page. So I used the pattern
string pattern = @"(?i)<script([^>])*>(\w|\W)*])*>|(?<gt>(<(""[^""]""|'[^']'|[^>])+)?>)";
string strParsed = Regex.Replace(contenuHtml, pattern, " ");

with this I got text with some malicious code like ".maillink{color:white;text-decoration:none;}" and so on.
For exple having HHHHfunction(){ffff}je suis néo en C#jksfjksdfjkfkfj I would like to obtain the contain of the body "je suis néo en C#jksfjksdfjkfkfj" and trashing all scripts, css, links and so on.
Some one can help me giving to me the correct pattern for the Regex.Replace(....)?

Thanx very much

TT

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.