c# 4.0 - Unable to Decode HTML in WCF Service -


public string returnstring() { string s = ""; s = httputility.somevaliable; return s; } 

somevaliable = <dependent><dependentid>

but getting string s value &ltdependent&gt&ltdependentid&gt

note: have not applied ; after &lt converted <

might string not compatible html format. please suggest me datatype have use return htmldecode format.

any quick please

see this question.

the data type looking xelement or xmlelement return type.

another easy way can use string return type use system.net.webutility htmlencode before returning in service , htmldecode in client.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -