Click here to Skip to main content
16,005,697 members
Home / Discussions / C#
   

C#

 
GeneralRe: Stored Procedures Pin
NormBohana1-Jun-05 13:53
NormBohana1-Jun-05 13:53 
GeneralRe: Stored Procedures Pin
Christian Graus1-Jun-05 13:56
protectorChristian Graus1-Jun-05 13:56 
GeneralRe: Stored Procedures Pin
NormBohana2-Jun-05 19:14
NormBohana2-Jun-05 19:14 
GeneralRe: Stored Procedures Pin
Christian Graus5-Jun-05 10:46
protectorChristian Graus5-Jun-05 10:46 
GeneralTracking time of user in AD Pin
shaima'31-May-05 18:46
shaima'31-May-05 18:46 
GeneralHandle string Pin
rockxuyenmandem31-May-05 17:49
rockxuyenmandem31-May-05 17:49 
GeneralRe: Handle string Pin
MoustafaS31-May-05 20:08
MoustafaS31-May-05 20:08 
GeneralRe: Handle string Pin
Carsten Zeumer31-May-05 21:04
Carsten Zeumer31-May-05 21:04 
If you need an HTML-Encoded string you can use the System.Web.HttpUtility.HtmlEncode function.
You must reference the System.Web assembly to use this function.

If you need to actually strip the Html tags you coud use a regular expression like this:
// replace br an p tags with linefeed<br />
string cleanedText = System.Text.RegularExpressions.Regex.Replace(htmlString,@"(?:</?(br|p)[^>]*>)","\r\n");<br />
// remove tags<br />
cleanedText = System.Text.RegularExpressions.Regex.Replace(cleanedText,@"(?:<[/!]?([A-Z][A-Z0-9]*)[^>]*>)","");


This code is very basic. It will not strip scripts nor will it handle tables pretty well.

I hope this is at least a start for you.
GeneralActiveX Autocad Pin
Newbie_Toy31-May-05 17:29
Newbie_Toy31-May-05 17:29 
GeneralRe: ActiveX Autocad Pin
Christian Graus31-May-05 17:38
protectorChristian Graus31-May-05 17:38 
GeneralRe: ActiveX Autocad Pin
Newbie_Toy31-May-05 19:11
Newbie_Toy31-May-05 19:11 
GeneralRe: ActiveX Autocad Pin
Christian Graus31-May-05 21:46
protectorChristian Graus31-May-05 21:46 
GeneralRe: ActiveX Autocad Pin
Reanalyse31-May-05 22:09
Reanalyse31-May-05 22:09 
GeneralRe: ActiveX Autocad Pin
Joel Lucsy2-Jun-05 15:34
Joel Lucsy2-Jun-05 15:34 
GeneralRe: ActiveX Autocad Pin
Newbie_Toy2-Jun-05 16:45
Newbie_Toy2-Jun-05 16:45 
GeneralRe: ActiveX Autocad Pin
Joel Lucsy3-Jun-05 2:37
Joel Lucsy3-Jun-05 2:37 
GeneralRe: ActiveX Autocad Pin
Newbie_Toy3-Jun-05 17:17
Newbie_Toy3-Jun-05 17:17 
GeneralRe: ActiveX Autocad Pin
Joel Lucsy6-Jun-05 3:42
Joel Lucsy6-Jun-05 3:42 
GeneralWindowsLocation and Mouse CoOrds. Pin
Akrynite31-May-05 16:01
Akrynite31-May-05 16:01 
GeneralRe: WindowsLocation and Mouse CoOrds. Pin
Christian Graus31-May-05 16:23
protectorChristian Graus31-May-05 16:23 
Generalstand alone application Pin
ABBASI_RA31-May-05 15:20
ABBASI_RA31-May-05 15:20 
GeneralRe: stand alone application Pin
Miguel Andrés31-May-05 15:25
Miguel Andrés31-May-05 15:25 
GeneralSyntax colorizing a textbox Pin
HRiazi31-May-05 14:19
HRiazi31-May-05 14:19 
GeneralRe: Syntax colorizing a textbox Pin
Christian Graus31-May-05 15:32
protectorChristian Graus31-May-05 15:32 
GeneralRe: Syntax colorizing a textbox Pin
Robert Rohde31-May-05 20:32
Robert Rohde31-May-05 20:32 

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.