Refs #384. Double and single quotes are now escaped when copying learning events.