This project has moved. For the latest updates, please go here.

How to parse special characters

Topics: Developer Forum, Project Management Forum, User Forum
Jul 13, 2011 at 7:27 AM

Hi , how can i extract special characters like $ using htmlagility pack, 

Say If the actual  innertext of a tag contain $12.34 , but the result of html agility pack innertext shows $12.34 (Means $ in place for $.). How can i avoid this .

The code i used is  

 HtmlWeb htmlWeb = new HtmlWeb();

 HtmlAgilityPack.HtmlDocument document = htmlWeb.Load(Weburl);   

 HtmlNodeCollection priceNode = document.DocumentNode.SelectNodes("//div[@id='somedivid']");

 string _htmlprice = priceNode[0].InnerText;

I want to get the exact text as it is shown  in browser


Jibin Mathew

Aug 26, 2014 at 11:17 AM