我需要一个关于严格的HTML验证和过滤的C#库

时间:2022-09-13 08:00:55

i need a C# library about strict HTML validation and filtering

我需要一个关于严格的HTML验证和过滤的C#库

2 个解决方案

#1


0  

Jeff Atwood posted some code for HTML tag filtering and sanitizing a while back. From your brief description it sounds like something you might want to look into.

杰夫阿特伍德发布了一些HTML标签过滤和清理消毒的代码。从您的简短描述中,它听起来像您可能想要查看的内容。

http://refactormycode.com/codes/333-sanitize-html

http://www.codinghorror.com/blog/archives/001172.html

#2


0  

I don't think any such thing exists, but it doesn't seem like it would be that hard to do a validation API that utilizes the w3C validator behind the scenes.

我认为没有任何这样的东西存在,但似乎很难做到在幕后使用w3C验证器的验证API。

What kind of filtering are you talking about? Your question is very vague...

你在谈论什么样的过滤?你的问题很模糊......

#1


0  

Jeff Atwood posted some code for HTML tag filtering and sanitizing a while back. From your brief description it sounds like something you might want to look into.

杰夫阿特伍德发布了一些HTML标签过滤和清理消毒的代码。从您的简短描述中,它听起来像您可能想要查看的内容。

http://refactormycode.com/codes/333-sanitize-html

http://www.codinghorror.com/blog/archives/001172.html

#2


0  

I don't think any such thing exists, but it doesn't seem like it would be that hard to do a validation API that utilizes the w3C validator behind the scenes.

我认为没有任何这样的东西存在,但似乎很难做到在幕后使用w3C验证器的验证API。

What kind of filtering are you talking about? Your question is very vague...

你在谈论什么样的过滤?你的问题很模糊......