Home All Groups Group Topic Archive Search About

How to unescape HTML string?

Author
12 Aug 2006 7:02 PM
Sebastian Mark
I have a simple question, is there an easy way in .NET
to unescape HTML characters?
for example I have a string

"Siebel Analytics Sr Consultant-"Partner w/ Deloitte & have
the oppty to become a Partner""

and I want to have

"Siebel Analytics Sr Consultant- Partner w/ Deloitte & have the oppty to
become a Partner"

Thank You

Author
12 Aug 2006 7:40 PM
Carl Daniel [VC++ MVP]
"Sebastian Mark" <REMOMEsa***@terian.net> wrote in message
news:u2IxgHkvGHA.1372@TK2MSFTNGP04.phx.gbl...
>I have a simple question, is there an easy way in .NET
> to unescape HTML characters?
> for example I have a string
>
> "Siebel Analytics Sr Consultant-&amp;quot;Partner w/ Deloitte &amp;amp;
> have the oppty to become a Partner&amp;quot;"
>
> and I want to have
>
> "Siebel Analytics Sr Consultant- Partner w/ Deloitte & have the oppty to
> become a Partner"

See System.Web.HttpUtility.HtmlDecode.

-cd

AddThis Social Bookmark Button