Check valid html C#

后端 未结 1 1903
我寻月下人不归
我寻月下人不归 2021-01-20 07:40

Is there an easy way in C# to validate an html file (.htm) ?

相关标签:
1条回答
  • 2021-01-20 08:20

    You could try the article C# Validate XHTML on Dot Net Perls.

    If you are not tied to doing this in C#, then usually the best way to validate HTML is using the W3C validation service.

    You could of course, write some kind of test harness in C# which pushes all your HTML through the W3C validator, if it makes sense in your case.

    0 讨论(0)
提交回复
热议问题