Hello,

I'm having problems with Tidy. I have it set to output XHTML Strict. I input the following:

Code:
<html>

This is a test

</html>
This is the output I get:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>foo</title>
</head>

<body>
    This is a test
</body>
Those of you who know XHTML will quickly recognise that the text "this is a test" can't go here; it needs to be inside a <p> element.

Tidy warns me about this, but it doesn't actually fix it. Does anybody know if there is a configuration option which forces all output from Tidy to be XHTML compliant, and actually fix things like this?