Converting HTML to Database in XHTML with ASP.NET
3 answers
I would look at HTML Tidy .
From the detailed documentation :
Tidy reads HTML, XHTML, and XML files and writes stripped-down markup. For HTML variants, it detects and fixes many common coding errors and produces visually equivalent markup that is W3C compliant and works on most browsers. A common use of Tidy is to convert plain HTML to XHTML.
+2
source to share