Question

I need to check if a HTML document is correct, if all tags and attributes are ok (in C#). If not, try to fix malformed tags and/or attributes. Any suggestions for a library or tool that i can use?

Thanks.

Was it helpful?

Solution

Tidy Managed solved my problems. This tool knows to repair broken tags and to close tags. Build TidyManaged app and download the libtidy.dll file and place it in bin/debug file.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top