相关疑难解决方法(0)

如何使用C#清理HTML标记

例如:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>title</title>
</head>
<body>
    <a href="aaa.asp?id=1"> I want to get this text </a>
    <div>
        <h1>this is my want!!</h1>
        <b>this is my want!!!</b>
    </div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

结果是:

 I want to get this text 
this is my want!!
this is my want!!!
Run Code Online (Sandbox Code Playgroud)

html c#

23
推荐指数
2
解决办法
3万
查看次数

标签 统计

c# ×1

html ×1