I'm not talking about validating to w3 specs. I just want to ensure that the html that the user creates is 'well-formed' so that it doesn't screw up my 'host' page when it is displayed, because of missing closing tags, etc..
Does anyone have any method to achieve this? Even an imperfect solution will be welcome (and better than nothing).
Thanks.