Removing HTML characters while retreiving data from the database

  • Thread starter Thread starter Renuka
  • Start date Start date
R

Renuka

Hello,

I have to retrive 2 columns from the database which have HTML
characters like &lt; &gt; (the less than"<" and greater than sign
">")in their data.

Is there any function in C# which can do this to convert these
characters back to "<" and ">" signs.

Please tell me asap.
 
Renuka said:
Hello,

I have to retrive 2 columns from the database which have HTML
characters like &lt; &gt; (the less than"<" and greater than sign
">")in their data.

Is there any function in C# which can do this to convert these
characters back to "<" and ">" signs.

public static string HtmlDecode(string);

Vadim Chekan.
 
Back
Top