Sanitize plain text content before editor transfer