Re: Web service converts ' into '

Ian Suttle <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.web
Message-ID <[email protected]>
Decode is definitely one method.  Does anyone know how to mark an
element to use CDATA?  If I wanted to return XML which had HTML content
within an element, and use XSL to transform it, there's not really an
opportune time to HtmlDecode the data.

-----Original Message-----
From: Discussion of building .NET applications targeted for the Web
[mailto:[email protected]] On Behalf Of Paul ten Brink
Sent: Thursday, February 22, 2007 2:53 AM
To: [email protected]
Subject: Re: [DOTNET-WEB] Web service converts ' into &apos;

Hi Efran and Mark,

HtmlEncode and HtmlDecode is exactly what I was looking for but could
not
find anymore...

Cheers!

Paul ten Brink
[email protected]


> Date:    Tue, 20 Feb 2007 17:27:08 +0100
> From:    Efran Cobisi <[email protected]>
> Subject: Re: Web service converts ' into &apos;
>
> Hi Paul,
>
> Maybe you are looking for System.Web.HttpUtility.HtmlEncode() and
> System.Web.HttpUtility.HtmlDecode() methods.
> HTH,
>
> Efran Cobisi
> http://www.cobisi.com
>
> Paul ten Brink wrote:
> > Hello,
> >
> > A web service returns a string containing an apostrophe, but it is
> > converted to its HTML code equivalent (see subject).
> >
> > (I am avoiding using the actual characters, since these could be
changed
> > by mail programs/services, which could make my question very
confusing.)
> >
> > There is a simple conversion call, but I can't remember it and
Googling
> > does not help. Something like System.Convert...
> >
> > Can anyone help me out?
> >
> > Thanks in advance,
> > Paul ten Brink
> > [email protected]

===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.