Running Into An Issue Trying To Extract The Text From A Snippet Of Html
i am using the HTML Agility pack to convert  This is a test  to   This is a test  using this code:  HtmlDocument doc = new HtmlDocument();  doc.Lo
Solution 1:
You can run HttpUtility.HtmlDecode() on the output.
However, note that InnerText will include HTML tags that may be contained inside the outermost tag. If you want to remove all tags, you will have to walk the document tree and retrieve all the text bit by bit.
Post a Comment for "Running Into An Issue Trying To Extract The Text From A Snippet Of Html"