Return string for display_events instead of ob_get_clean