2

I'm having problem converting html code to a string. Can someone explain how do I convert

Here’s What Happened Today: Wednesday 

to

Here's What Happened Today: Wednesday

I've tried using WebUtility.HtmlDecode, but it still returns the string with the &#8217

Note I'm trying to do this within a WP8 app.

Thanks.

0

1 Answer 1

1

I found this on SO.

WebUtility.HtmlDecode vs HttpUtilty.HtmlDecode

Seems to output different values based on the function called. I would use HttpUtility.HtmlDecode instead since it's matching your the behavior that you want.

Sign up to request clarification or add additional context in comments.

2 Comments

Bang on!! I didn't think http utility was available in wp8 but it is and it worked. Kind of poor from MS that the behaviour is different for the 2 as you would think that both would behave the same way. Wasted so much time on this, thinking I was doing something wrong! Thanks again!
Yeah I read the comment on that page seems a lot of people wasted a lot of time figuring it out.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.