Generate more valid html