This project has moved and is read-only. For the latest updates, please go here.

how to load an encoded string into htmlDocument object

Topics: Developer Forum
Apr 20, 2016 at 4:17 AM
Edited Apr 20, 2016 at 4:19 AM

I am aware of the following code to load an html string

string astr = "<p> This is first Program </p>";
var htmlDoc = new HtmlAgilityPack.HtmlDocument();
// load the html string to htmldocument object

but i would like to load an encoded string for example the encoded string is as follow
&quot;&lt;p&gt; This is first Program &lt;/p&gt;
the reason for this is for example i have a string which is
For patients with heart failure or ejection fraction < 40%, ACE-inhibitors (or ARB’s if history of ACE-inhibitors intolerance) should be considered.6. Other more routine options are listed below.

when i load the string below is the result for me
For patients with heart failure or ejection fraction < 40%,="" ace-inhibitors="" (or="" arb’s="" if="" history="" of="" ace-inhibitors="" intolerance)="" should="" be="" considered.="" 6.="" other="" more="" routine="" options="" are="" listed="">

Please i would like to know the solution for this problem

Thanks in Advance,