开发者

html agility pack: how to extract raw text

Quick question, how do I get all raw text (i.e., removing all html t开发者_如何转开发ags) using html agility pack?

HtmlDocument doc = new HtmlDocument();
        doc.Load(html);


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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜