Sanitize html preview