Do C# winforms have HtmlDecode() equivalent like Asp.net?

Go To StackoverFlow.com

0

In the web using c# would be simple

 System.Web.HttpUtility.HtmlDecode() 

but now I am using a winform application and need to convert Html escape values whats the equivalent?

2012-04-04 19:18
by kacalapy


3

You can just reference the System.Web library and use it

2012-04-04 19:19
by Pharabus
And note that you'll have to switch away from the client profile in order to add a reference to System.Web - ildjarn 2012-04-04 19:20
damn, i didnt see it because the default client profile version of the .net framework was selected for this project. changed it to just plain .net4 and then it showed in the list of references - kacalapy 2012-04-04 19:23


2

If you add System.Web to your project references, then you should be able to use the HttpUtility.HtmlDecode method.

2012-04-04 19:20
by Kiril


1

Just add a project reference to the System.Web dll and you should be able to use it.

2012-04-04 19:19
by Ed S.
Ads