Quick question, how do I get all raw text (i.e., removing all html tags) using html agility pack?
HtmlDocument doc = new HtmlDocument();
doc.Load(html);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you download source code from Html Agility Pack page (look for “Html Agility Pack 1.4.0 Source” file) there is folder Html2Txt that contains the code you need (look for the HtmlToText class in HtmlConvert.cs file).