开发者

Get text from HTML [duplicate]

开发者 https://www.devze.com 2022-12-09 15:13 出处:网络
This question already has answers here: How do you convert Html to plain text? (19 answers) Closed last year.
This question already has answers here: How do you convert Html to plain text? (19 answers) Closed last year.

I need a way to get all text from my aspx files. They may contain javascrip also but I only need this for the HTML code.

Basically I need to extract everything on Text or Value attributes, text within code, whatever...

开发者_运维技巧

Is there any parser API available?

Cheers! Alex


As an alternative, you might consider playing with Linq to XML to strip the interesting stuff out.

0

精彩评论

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