HTML2SafeHTML allows you to convert arbitrary HTML code into "well defined" HTML or simple XML. HTML2SafeHTML is especially useful to convert Microsoft HTML to standard HTML. The converter is based on stripogram.