Significate clean up of HTML to cleanForPreview. Does not deal with tables
More complete cleanForPreview for HTML. Adds completeHTML which is needed in case trucation of HTML creates invalid HTML