Html preview sanitize

Adds a cleanup for preview. We should do some more testing on it, but I think it works for any file created by the editor.