Quantcast
Channel: htmlagilitypack Forum Rss Feed
Viewing all articles
Browse latest Browse all 450

New Post: how to load an encoded string into htmlDocument object

$
0
0
Hi

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
htmlDoc.LoadHtml(astr);

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,
Raj.

Viewing all articles
Browse latest Browse all 450

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>