Removing HTML characters while retreiving data from the database

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Renuka

    #1

    Removing HTML characters while retreiving data from the database

    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.
  • Vadim Chekan

    #2
    Re: Removing HTML characters while retreiving data from the database

    Renuka wrote:
    [color=blue]
    > 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.[/color]

    public static string HtmlDecode(stri ng);

    Vadim Chekan.

    Comment

    • Renuka Srivastava

      #3
      Re: Removing HTML characters while retreiving data from the database





      *** Sent via Developersdex http://www.developersdex.com ***
      Don't just participate in USENET...get rewarded for it!

      Comment

      Working...