using HTMLPurifier to save reports