cleanup to html