htmldecode

Can you do HtmlDecode & HtmlEncode in Silverlight?

So since System.Web & HttpContext isn't available in Silverlight is there a way to do HtmlDecode & HtmlEncode inside a Silverlight app without some horrendous Regex? ...

Using HttpUtility.HtmlDecode method with .NET Compact Framework?

A project using .NET Compact Framework does not allow use System.Web library. How can I do to HTMLDecode a string using .NET Compact Framework? I didn't found any class that do that. ...

Users entering ampersand & character messing up my sites w3c validation

Hi guys, my social networking site is w3c xhtml valid however users are able to post blog reports and stuff and at times enter in ampersand characters which in turn mess up my validation. How can I fix this and are there any other single characters that I need to look out for that could mess up my validation? ...

Storing HTML in datastore and Decoding during XSL transformation

I'm trying to store html object tags for video players in a datastore. This data will be serialized and passed back to client javascript where it will be transformed and displayed in the browser to show the video. I need to be able to htmlDecode the data so that it is evaluated properly in the browser. Any ideas how to accomplish th...

HttpUtility.HtmlDecode driving me crazy!!!!

Hi everybody! This situation is driving me crazy!!: the following snippet does not work (as i should) ... string preResult = doc.DocumentNode.SelectSingleNode("//textarea[@name='utrans']").InnerText return HttpUtility.HtmlDecode(preResult); ... The first line assigns a value (e.g.) "<b> Dummy value: </ b> into preRes...

HTML Decode with encode from Latin-1 (ISO 8859-1) in iPhone/iPad SDK

Hi, I creating a rss reader for a site from Denmark, they have some thing like this in their CDATA: <description><![CDATA[><p><img src="http://www.fotoagent.dk//single_picture/10851/1/small/18.Sep.2008_033_fodring_v_h_fde_40.jpg" alt="" width="150" /></p><p>For at sikre Bl&aring;vand by mod oversv&oslash;mmelse, er Kystdirektoratets st...

HTML decoding in C/C++

I'm using libcurl for getting HTML pages. I have some problems with Hebrew characters. for example this: &#1505;&#1500;&#1511;&#1493;&#1501; gets gibberish. How do I get Hebrew characters and not gibberish? Do I need some HTML decoder? Does libcurl support such operation? Does libiconv support such operation? I appreciate any help...